Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
e3b090db
Unverified
Commit
e3b090db
authored
Dec 13, 2023
by
pepperoni21
Committed by
GitHub
Dec 13, 2023
Browse files
Added message format for chat api (#1488)
parent
d9e60f63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
docs/api.md
docs/api.md
+4
-0
No files found.
docs/api.md
View file @
e3b090db
...
@@ -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`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment