We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e9fa402 + 6c23e11 commit 990c135Copy full SHA for 990c135
articles/ai-services/openai/how-to/function-calling.md
@@ -134,8 +134,11 @@ if response_message.get("function_call"):
134
messages.append( # adding assistant response to messages
135
{
136
"role": response_message["role"],
137
- "name": response_message["function_call"]["name"],
138
- "content": response_message["function_call"]["arguments"],
+ "function_call": {
+ "name": response_message["function_call"]["name"],
139
+ "arguments": response_message["function_call"]["arguments"],
140
+ },
141
+ "content": None
142
}
143
)
144
messages.append( # adding function response to messages
0 commit comments