You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
instructions="You are a weather bot. Use the provided functions to answer questions.",
55
-
model="gpt-4-1106-preview", #Replace with model deployment name
55
+
model="gpt-4", #Replace with model deployment name
56
56
tools=[{
57
57
"type": "function",
58
58
"function": {
59
-
"name": "getCurrentWeather",
59
+
"name": "get_weather",
60
60
"description": "Get the weather in location",
61
61
"parameters": {
62
62
"type": "object",
63
63
"properties": {
64
-
"location": {"type": "string", "description": "The city and state e.g. San Francisco, CA"},
65
-
"unit": {"type": "string", "enum": ["c", "f"]}
64
+
"location": {"type": "string", "description": "The city name, for example San Francisco"}
66
65
},
67
66
"required": ["location"]
68
67
}
69
68
}
70
-
}, {
71
-
"type": "function",
72
-
"function": {
73
-
"name": "getNickname",
74
-
"description": "Get the nickname of a city",
75
-
"parameters": {
76
-
"type": "object",
77
-
"properties": {
78
-
"location": {"type": "string", "description": "The city and state e.g. San Francisco, CA"},
79
-
},
80
-
"required": ["location"]
81
-
}
82
-
}
83
69
}]
84
70
)
85
71
```
@@ -169,35 +155,68 @@ When you initiate a **Run** with a user Message that triggers the function, the
169
155
170
156
## Submitting function outputs
171
157
172
-
You can then complete the **Run** by submitting the tool output from the function(s) you call. Pass the `tool_call_id` referenced in the `required_action` object above to match output to each function call.
158
+
You can then complete the **Run** by submitting the tool output from the function(s) you call. Pass the `tool_call_id` referenced in the `required_action` object to match output to each function call.
0 commit comments