Replies: 1 comment
-
Add @markwallace-microsoft for visibility |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've built my own
IChatCompletionService
for the Phi4 model and this works great. I've also managed to supply it with function call signatures and get it to respond with function call requests. However these just come back as streaming text that I can't really tell apart from the normal text responses, instead of a response with a specific tool_call role.How would one go about implementing function calling in a customer provider in C#? I've browsed the source code here and find bits and pieces but can't really make too much sense of it. Any pointers and examples/breakdown of existing classes would be super helpful.
Here's what I've sort of played with, but not sure if this is the right place to plug things in
IChatCompletionService.GetStreamingChatMessageContentsAsync
, or how to really move on from here:Beta Was this translation helpful? Give feedback.
All reactions