Closed xuzeyu91 closed 3 months ago
@xuzeyu91 Could you tell us why you want to pass a httpclient? Is that for retry policy/connect to third party openai, etc...
Could you tell us why you want to pass a httpclient? Is that for retry policy/connect to third party openai, etc...
This will be of great help to us, such as viewing the Prompt for analyzing requests, printing input-output response logs, and connecting to third party openai
@xuzeyu91
Thanks, maybe consider using OpenAIChatAgent
, which accepts an OpenAIClient
in it's constructor and you can pass your http client when creating OpenAIClient
You can check the example here
GPTAgent
also uses OpenAIChatAgent
, in fact GPTAgent
is equivalent to OpenAIChatAgent
+ OpenAI Message Connector
+ FunctionCall Middleware
, so you can achieve the same behavior of using OpenAIChatAgent
in your code
Thank you.
@xuzeyu91 Does my answer works for you, could I close this issue as completed?
Does my answer works for you, could I close this issue as completed?
Thank you, no problem
Is your feature request related to a problem? Please describe.
I hope to customize HttpClient similar to Semantic Kernel
Describe the solution you'd like
Similar to this
Additional context
No response