Because the realtime api does not have a mechanism to access the historic messages for a session, I want to know if I send a new system message, the system message in question gets updated or I am appending a new one, that would cause hallucination? The use case is the following: I have a foreign language coach that teaches the user languages and the user, in the middle of the conversation can change the proficiency level (begginer, intermediate, advanced) that changes a variable in the system message and sends it again as:
socket.data.openAiWs.send(
JSON.stringify({
type: 'conversation.item.create',
item: {
type: 'message',
role: 'system',
content: [
{
type: 'input_text',
text,
},
],
},
})
);
Is this updating the system message or appending a new system message?