Skip to content

Calling native function in IChatCompletionService #7001

Closed Answered by stephentoub
imranshams asked this question in Q&A
Discussion options

You must be logged in to vote

Try changing this:

await foreach (var item in _aiChatService.GetStreamingChatMessageContentsAsync(aiHistory, executionSettings: executionSettings))

to this:

await foreach (var item in _aiChatService.GetStreamingChatMessageContentsAsync(aiHistory, executionSettings: executionSettings, _kernel))

The kernel object is what contains the plugins. Those need to be provided to the service.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@imranshams
Comment options

Answer selected by imranshams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants