From add54662700e4fed5b9cf74670e8caad0d4675c9 Mon Sep 17 00:00:00 2001 From: Reza Rahemtola Date: Tue, 11 Feb 2025 21:42:21 +0800 Subject: [PATCH] docs(examples/server): Update wrong tool calling example Call updated to match the tool used in the output just below, following the example in https://github.com/ggerganov/llama.cpp/pull/9639 --- examples/server/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/server/README.md b/examples/server/README.md index d0b262f0e1f75..14c9bedd2bb0d 100644 --- a/examples/server/README.md +++ b/examples/server/README.md @@ -1236,17 +1236,17 @@ curl http://localhost:8080/v1/chat/completions \ { "type":"function", "function":{ - "name":"get_current_weather", - "description":"Get the current weather in a given location", + "name":"python", + "description":"Runs code in an ipython interpreter and returns the result of the execution after 60 seconds.", "parameters":{ "type":"object", "properties":{ - "location":{ + "code":{ "type":"string", - "description":"The city and state, e.g. San Francisco, CA" + "description":"The code to run in the ipython interpreter." } }, - "required":["location"] + "required":["code"] } } } @@ -1254,7 +1254,7 @@ curl http://localhost:8080/v1/chat/completions \ "messages": [ { "role": "user", - "content": "What is the weather like in Istanbul?." + "content": "Print a hello world message with python." } ] }'