File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff 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 }'
You can’t perform that action at this time.
0 commit comments