updated tool call example to be less ambiguous (deepseek likes to rant about hello world)

This commit is contained in:
ochafik 2025-01-27 22:44:44 +00:00
parent fa065eb095
commit ad229783c5

View file

@ -1116,19 +1116,19 @@ curl http://localhost:8080/v1/chat/completions \
"model": "gpt-3.5-turbo", "model": "gpt-3.5-turbo",
"tools": [ "tools": [
{ {
"type": "function", "type":"function",
"function": { "function":{
"name": "python", "name":"get_current_weather",
"description": "Runs code in an ipython interpreter and returns the result of the execution after 60 seconds.", "description":"Get the current weather in a given location",
"parameters": { "parameters":{
"type": "object", "type":"object",
"properties": { "properties":{
"code": { "location":{
"type": "string", "type":"string",
"description": "The code to run in the ipython interpreter." "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": [ "messages": [
{ {
"role": "user", "role": "user",
"content": "Print a hello world message with python." "content": "What is the weather like in Istanbul?."
} }
] ]
}' }'