simpleaichat icon indicating copy to clipboard operation
simpleaichat copied to clipboard

System messages

Open emil2099 opened this issue 1 year ago • 0 comments

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:

  1. When we modify message history and system prompt we get consistent API for both
  2. When system prompt is injected mid-conversation (not documented by Open AI and not currently possible in this library?)

emil2099 avatar Jul 21 '23 12:07 emil2099