Skip to content

Commit ad22978

Browse files
author
ochafik
committed
updated tool call example to be less ambiguous (deepseek likes to rant about hello world)
1 parent fa065eb commit ad22978

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

examples/server/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,27 +1116,27 @@ curl http://localhost:8080/v1/chat/completions \
11161116
"model": "gpt-3.5-turbo",
11171117
"tools": [
11181118
{
1119-
"type": "function",
1120-
"function": {
1121-
"name": "python",
1122-
"description": "Runs code in an ipython interpreter and returns the result of the execution after 60 seconds.",
1123-
"parameters": {
1124-
"type": "object",
1125-
"properties": {
1126-
"code": {
1127-
"type": "string",
1128-
"description": "The code to run in the ipython interpreter."
1119+
"type":"function",
1120+
"function":{
1121+
"name":"get_current_weather",
1122+
"description":"Get the current weather in a given location",
1123+
"parameters":{
1124+
"type":"object",
1125+
"properties":{
1126+
"location":{
1127+
"type":"string",
1128+
"description":"The city and state, e.g. San Francisco, CA"
11291129
}
11301130
},
1131-
"required": ["code"]
1131+
"required":["location"]
11321132
}
11331133
}
11341134
}
11351135
],
11361136
"messages": [
11371137
{
11381138
"role": "user",
1139-
"content": "Print a hello world message with python."
1139+
"content": "What is the weather like in Istanbul?."
11401140
}
11411141
]
11421142
}'

0 commit comments

Comments
 (0)