We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9e60f6 commit e3b090dCopy full SHA for e3b090d
docs/api.md
@@ -304,6 +304,10 @@ Generate the next message in a chat with a provided model. This is a streaming e
304
- `model`: (required) the [model name](#model-names)
305
- `messages`: the messages of the chat, this can be used to keep a chat memory
306
307
+ A message is an object with the following fields:
308
+ - `role`: the role of the message, either `user`, `assistant` or `system`
309
+ - `content`: the content of the message
310
+
311
Advanced parameters (optional):
312
313
- `format`: the format to return a response in. Currently the only accepted value is `json`
0 commit comments