How is the API request formatted for the user message along with the stored messages? #1520
Unanswered
marius-manola
asked this question in
Help
Replies: 1 comment 3 replies
-
How are you calling the OpenAI API? Can you provide a code snippet? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When making a request to OpenAI API, how does the request look like along with stored messages from the history?
Do those messages get attached to the user content?
role: assistant
content: "as it was"
role: user
content: "previous messages are added + the actual user input"
Do they get appended to the system prompt? Or are they sent as something separate?
Beta Was this translation helpful? Give feedback.
All reactions