Skip to content

Commit 6c6a46d

Browse files
Merge pull request #249324 from dereklegenzoff/functions-updates
fixing code sample per dry principle. Credit to @LazaUK
2 parents fa18d3c + 99fb428 commit 6c6a46d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/ai-services/openai/how-to/function-calling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ if response_message.get("function_call"):
135135
{
136136
"role": response_message["role"],
137137
"function_call": {
138-
"name": response_message["function_call"]["name"],
138+
"name": function_name,
139139
"arguments": response_message["function_call"]["arguments"],
140140
},
141141
"content": None

0 commit comments

Comments
 (0)