Repository navigation
.Net: Function calling: Add function author role and name property - #3421
Conversation
|
Mark Wallace (@markwallace-microsoft) I found a bug in beta6 that will cause OpenAI to return 500 Internal Server Error. To reproduce, change and execute Example59 as below: I am using "gpt-3.5-turbo-0613" LLM model. In fact, I have reported this issue in PR 3302 before. When LLM returns the function calling assistant message to us (record 2 below), the Name field is null and the FunctionCall field contains the function to be called. I am using native OpenAI API call here. |

Motivation and Context
Replaces #3302
Resolves #3017 and enables the full function calling scenario as described in the OpenAI function calling documentation.
Description
Adds the "function" author role to allow adding function messages to chat history. Function messages require a "name" parameter, so this change also adds that to chat message model.
Contribution Checklist