Skip to content

Commit e3b090d

Browse files
authored
Added message format for chat api (ollama#1488)
1 parent d9e60f6 commit e3b090d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/api.md

+4
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@ Generate the next message in a chat with a provided model. This is a streaming e
304304
- `model`: (required) the [model name](#model-names)
305305
- `messages`: the messages of the chat, this can be used to keep a chat memory
306306

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+
307311
Advanced parameters (optional):
308312

309313
- `format`: the format to return a response in. Currently the only accepted value is `json`

0 commit comments

Comments
 (0)