flat-fuchsia
flat-fuchsiaβ€’2y ago

OpenAI System Message vs Silent Text Message System Message

I'm trying to understand the distinction between regular system messages, like OpenAI 'system' messages (afaik OpenAI only takes 1 system message at the start of a conversation) β€” & the silent text message system messages (are they injected as 'system' messages in the message stream?). It seems that we're injecting more system messages into the chat conversation, but I believe you're only supposed to have 1 system message at the start of a conversation. Just trying to reason about how this interacts with the first/initial system message in the conversation. Maybe I just need to experiment.
No description
5 Replies
flat-fuchsia
flat-fuchsiaOPβ€’2y ago
Actually, looks like you can have multiple system messages: https://community.openai.com/t/multiple-system-messages/295258
OpenAI Developer Forum
Multiple system messages?
The Chat Completion docs say: Typically, a conversation is formatted with a system message first, followed by alternating user and assistant messages. I am building a chatbot, and I update the system message when the user context changes. Currently, I start a new chat history when this happens. I’m wondering if it’s possible to keep the prio...
ambitious-aqua
ambitious-aquaβ€’2y ago
Also, Silent Text message is when you want to add a message programatically to the message history or as an instruction. It could be system message or a user message as well. THis is more on the client sdk
sensitive-blue
sensitive-blueβ€’2y ago
I am trying to send a sdk client side message, and it may have worked ... however... where does it show up? I am looking in the Vapi dashboard under Calls > Transcript but I cant see my messages. Now, this could be an error on my part, so I wanted to check if they are indeed stored here. Does this go into the chat history within the assistant history? Eg. Is it viewable... im trying to validate my call are correct... but an unsure if they appear here or not. (Or elsewhere πŸ€”)
ambitious-aqua
ambitious-aquaβ€’2y ago
Transcript only includes assisatnt and user messages not the system messages. But the system messages are in the message history being used during the conversation. You can also trigger user message by setting the role to user using vapi.send function as mentioned in the docs.
sensitive-blue
sensitive-blueβ€’2y ago
Ok, cool I'll test the user messages to ensure data is being received. In relation to the tool, function options, I'm interested to know the difference in this context, if you know? I assume the function role specifies a function to be run you've setup, however, there is no mention of what the tool role does on vapi Got it working, was tricky ... but now I can make her say 'peanuts' amongst other things... can change the system prompt on the fly from mynweb app during the call.

Did you find this page helpful?