From: Reza Rahemtola Date: Thu, 13 Feb 2025 16:22:44 +0000 (+0100) Subject: server : (docs) Update wrong tool calling example (#11809) X-Git-Tag: upstream/0.0.4719~10 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=c1f958c0381e797135b7d42a677542133264193c;p=pkg%2Fggml%2Fsources%2Fllama.cpp server : (docs) Update wrong tool calling example (#11809) Call updated to match the tool used in the output just below, following the example in https://github.com/ggerganov/llama.cpp/pull/9639 --- diff --git a/examples/server/README.md b/examples/server/README.md index 1e726fdd..751d4db9 100644 --- a/examples/server/README.md +++ b/examples/server/README.md @@ -1437,17 +1437,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"] } } } @@ -1455,7 +1455,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." } ] }'