Skip to content

How to customize response handlers? #6198

Closed Answered by dmytrostruk
niltor asked this question in Q&A
Discussion options

You must be logged in to vote

@niltor Here is an example how to inject custom HttpClient in connector:
https://github.com/microsoft/semantic-kernel/blob/2530367c17c71c6210afc4b890f97847ac557928/dotnet/samples/Concepts/ChatCompletion/Connectors_CustomHttpClient.cs

It's still will be possible to use InvokePromptStreamingAsync method. We don't have examples for such scenario yet, but we do have unit tests that you can use as a reference:

public async Task GetStreamingChatMessageContentsWorksCorrectlyAsync()
{
// Arrange
var service = new AzureOpen…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@niltor
Comment options

@dmytrostruk
Comment options

Answer selected by niltor
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