From 97c569694570e099c835e3c78a805613ac0777f5 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Wed, 6 Dec 2023 12:10:20 -0800 Subject: [PATCH] fix base urls in chat examples --- docs/api.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/api.md b/docs/api.md index cac8ddd0..e9db3333 100644 --- a/docs/api.md +++ b/docs/api.md @@ -291,6 +291,7 @@ curl http://localhost:11434/api/generate -d '{ ``` ## Send Chat Messages + ```shell POST /api/chat ``` @@ -312,10 +313,11 @@ Advanced parameters (optional): ### Examples #### Request + Send a chat message with a streaming response. ```shell -curl http://localhost:11434/api/generate -d '{ +curl http://localhost:11434/api/chat -d '{ "model": "llama2", "messages": [ { @@ -361,10 +363,11 @@ Final response: ``` #### Request (With History) + Send a chat message with a conversation history. ```shell -curl http://localhost:11434/api/generate -d '{ +curl http://localhost:11434/api/chat -d '{ "model": "llama2", "messages": [ {