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
ba264e9d
Commit
ba264e9d
authored
Dec 07, 2023
by
Jeffrey Morgan
Browse files
add future version note to chat api docs
parent
a2405ec8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
README.md
README.md
+3
-3
docs/api.md
docs/api.md
+1
-1
No files found.
README.md
View file @
ba264e9d
...
@@ -214,13 +214,13 @@ curl http://localhost:11434/api/generate -d '{
...
@@ -214,13 +214,13 @@ curl http://localhost:11434/api/generate -d '{
}'
}'
```
```
Or send a chat message:
Or send a chat message
(coming in 0.1.14)
:
```
```
curl http://localhost:11434/api/chat -d '{
curl http://localhost:11434/api/chat -d '{
"model": "mistral",
"model": "mistral",
"messages": [
"messages": [
{ "role": "user", "content": "why is the sky blue?" }
{ "role": "user", "content": "why is the sky blue?" }
]
]
}'
}'
```
```
...
...
docs/api.md
View file @
ba264e9d
...
@@ -291,7 +291,7 @@ curl http://localhost:11434/api/generate -d '{
...
@@ -291,7 +291,7 @@ curl http://localhost:11434/api/generate -d '{
}
}
```
```
## Send Chat Messages
## Send Chat Messages
(coming in 0.1.14)
```
shell
```
shell
POST /api/chat
POST /api/chat
...
...
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