File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ public static ChatClientAgent CreateAgentInternal(
7878 var clientOptions = new OpenAIClientOptions ( )
7979 {
8080 Endpoint = new Uri ( option . Endpoint ?? DefaultEndpoint ) ,
81- Transport = new System . ClientModel . Primitives . HttpClientPipelineTransport ( httpClient )
81+ Transport = new System . ClientModel . Primitives . HttpClientPipelineTransport ( httpClient ) ,
82+ NetworkTimeout = = httpClient . Timeout
8283 } ;
8384
8485 var openAiClient = new OpenAIClient (
@@ -94,7 +95,8 @@ public static ChatClientAgent CreateAgentInternal(
9495 var clientOptions = new OpenAIClientOptions ( )
9596 {
9697 Endpoint = new Uri ( option . Endpoint ?? DefaultEndpoint ) ,
97- Transport = new System . ClientModel . Primitives . HttpClientPipelineTransport ( httpClient )
98+ Transport = new System . ClientModel . Primitives . HttpClientPipelineTransport ( httpClient ) ,
99+ NetworkTimeout = = httpClient . Timeout
98100 } ;
99101
100102 var openAiClient = new OpenAIClient (
@@ -226,4 +228,4 @@ public ChatClientAgent CreateSimpleChatClient(
226228 return CreateAgentInternal ( model , clientAgentOptions , option ) ;
227229 }
228230 }
229- }
231+ }
You can’t perform that action at this time.
0 commit comments