mirror of
https://github.com/ollama/ollama.git
synced 2026-04-18 09:54:18 +02:00
chat api endpoint (#1392)
This commit is contained in:
11
README.md
11
README.md
@@ -214,6 +214,17 @@ curl http://localhost:11434/api/generate -d '{
|
||||
}'
|
||||
```
|
||||
|
||||
Or send a chat message:
|
||||
|
||||
```
|
||||
curl http://localhost:11434/api/chat -d '{
|
||||
"model": "mistral",
|
||||
"messages": [
|
||||
{ "role": "user", "content": "why is the sky blue?" }
|
||||
]
|
||||
}'
|
||||
```
|
||||
|
||||
See the [API documentation](./docs/api.md) for all endpoints.
|
||||
|
||||
## Community Integrations
|
||||
|
||||
Reference in New Issue
Block a user