From ad229783c5e979046a07337bf5fd6ecdaedfc02f Mon Sep 17 00:00:00 2001 From: ochafik Date: Mon, 27 Jan 2025 22:44:44 +0000 Subject: [PATCH] updated tool call example to be less ambiguous (deepseek likes to rant about hello world) --- examples/server/README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/server/README.md b/examples/server/README.md index 7272204cd..59cc35d41 100644 --- a/examples/server/README.md +++ b/examples/server/README.md @@ -1116,19 +1116,19 @@ curl http://localhost:8080/v1/chat/completions \ "model": "gpt-3.5-turbo", "tools": [ { - "type": "function", - "function": { - "name": "python", - "description": "Runs code in an ipython interpreter and returns the result of the execution after 60 seconds.", - "parameters": { - "type": "object", - "properties": { - "code": { - "type": "string", - "description": "The code to run in the ipython interpreter." + "type":"function", + "function":{ + "name":"get_current_weather", + "description":"Get the current weather in a given location", + "parameters":{ + "type":"object", + "properties":{ + "location":{ + "type":"string", + "description":"The city and state, e.g. San Francisco, CA" } }, - "required": ["code"] + "required":["location"] } } } @@ -1136,7 +1136,7 @@ curl http://localhost:8080/v1/chat/completions \ "messages": [ { "role": "user", - "content": "Print a hello world message with python." + "content": "What is the weather like in Istanbul?." } ] }'