I am trying to provide a completion engine with a starting sequence in my prompt, here is the messages structure:
[{
role: "system",
content: `You are a software engineer. Given the user input, provide the React app code that solves the task. Example:
<path>app.jsx</app>
<component>
export default function App() {
return (
<p>Hello!</p>
);
}
</component>`,
}, {
role: "user",
content: "a simple todo app",
}, {
role: "assistant",
content: "<"
}]
But the answer always starts from an empty string, the followed by “<” and then goes the actual code. And no matter what starting sequence I provide it seems to be ignored or included in the answer.
I use streaming and model “gpt-4o”