HandlebarsPlan to use custom httpclient and httpclient handler when invoke ( handlerbarsplan.invokeAsync(kernel, initialContext) #5857
Replies: 3 comments 2 replies
-
Could you please share the code you're using? |
Beta Was this translation helpful? Give feedback.
-
Example65_HandlebarsPlanner handlebar = new Example65_HandlebarsPlanner(); using static System.Console; public class CustomHttpHanadler : HttpClientHandler
} public class Example65_HandlebarsPlanner
} |
Beta Was this translation helpful? Give feedback.
-
The reason the HTTP client is not being used for Coursera is because it's only being attached to the Chat Completion service. If you would like to use the same HTTP client for Coursera, then you would need to also pass the HTTP client to the Coursera plugin using the optional http client input parameter. The reason why these are separate is because you often want different HTTP clients for handling different scenarios like auth. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to the Example65 of coursera courses. I was able to intercept add custom httphandler when the plan is created however when the actual plan was invoked which calls coursera api, the custom httphandler which I setup for kernel does not get invoke. looks like another httpclient and httphandler gets used?
can you clarify?
Beta Was this translation helpful? Give feedback.
All reactions