You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would consider adding an api llm_chat_system_context(text as TEXT) that sets the first message in the history with the system role and can be modified as desired. This system's message is usually reported at the beginning of the conversation and instruct the model on how to act. The context (system's message) can change during the conversation.
Perhaps the same function without parameters or another function returns the set text.
The system context is saved as the first message in the history and is replaced if it changes. A new chat resets all messages, including the context.
Activity
feat(chat): add system prompt handling in chat messages (pr #21, issue …