Unverified Commit e3b090db authored by pepperoni21's avatar pepperoni21 Committed by GitHub
Browse files

Added message format for chat api (#1488)

parent d9e60f63
...@@ -304,6 +304,10 @@ Generate the next message in a chat with a provided model. This is a streaming e ...@@ -304,6 +304,10 @@ Generate the next message in a chat with a provided model. This is a streaming e
- `model`: (required) the [model name](#model-names) - `model`: (required) the [model name](#model-names)
- `messages`: the messages of the chat, this can be used to keep a chat memory - `messages`: the messages of the chat, this can be used to keep a chat memory
A message is an object with the following fields:
- `role`: the role of the message, either `user`, `assistant` or `system`
- `content`: the content of the message
Advanced parameters (optional): Advanced parameters (optional):
- `format`: the format to return a response in. Currently the only accepted value is `json` - `format`: the format to return a response in. Currently the only accepted value is `json`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment