simpleaichat
simpleaichat copied to clipboard
System messages
Hi - great job building this.
I notice that messages doesn't include system message. Would it be better to include system prompt in the messages to mirror Open AI's approach with messages?
message1 = ChatMessage(role="system", content="You are a helpful assistant.")
This may be handy in a couple of use cases:
- When we modify message history and system prompt we get consistent API for both
- When system prompt is injected mid-conversation (not documented by Open AI and not currently possible in this library?)