mirror of
https://github.com/ollama/ollama.git
synced 2025-10-11 04:53:53 +02:00
fix base urls in chat examples
This commit is contained in:
@@ -291,6 +291,7 @@ curl http://localhost:11434/api/generate -d '{
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Send Chat Messages
|
## Send Chat Messages
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
POST /api/chat
|
POST /api/chat
|
||||||
```
|
```
|
||||||
@@ -312,10 +313,11 @@ Advanced parameters (optional):
|
|||||||
### Examples
|
### Examples
|
||||||
|
|
||||||
#### Request
|
#### Request
|
||||||
|
|
||||||
Send a chat message with a streaming response.
|
Send a chat message with a streaming response.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
curl http://localhost:11434/api/generate -d '{
|
curl http://localhost:11434/api/chat -d '{
|
||||||
"model": "llama2",
|
"model": "llama2",
|
||||||
"messages": [
|
"messages": [
|
||||||
{
|
{
|
||||||
@@ -361,10 +363,11 @@ Final response:
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### Request (With History)
|
#### Request (With History)
|
||||||
|
|
||||||
Send a chat message with a conversation history.
|
Send a chat message with a conversation history.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
curl http://localhost:11434/api/generate -d '{
|
curl http://localhost:11434/api/chat -d '{
|
||||||
"model": "llama2",
|
"model": "llama2",
|
||||||
"messages": [
|
"messages": [
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user