We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dde1e8 commit 1a21f73Copy full SHA for 1a21f73
1 file changed
trpc_agent_sdk/models/_openai_model.py
@@ -235,14 +235,15 @@ def _create_async_client(self) -> openai.AsyncOpenAI:
235
236
logging.getLogger("httpx").setLevel(logging.WARNING)
237
238
- self.client_args['http_client'] = self._http_client_factory()
+ client_args = self.client_args.copy()
239
+ client_args['http_client'] = self._http_client_factory()
240
241
return openai.AsyncOpenAI(
242
api_key=self._api_key,
243
max_retries=0, # disable retries
244
organization=self.organization,
245
base_url=self._base_url,
- **self.client_args,
246
+ **client_args,
247
)
248
249
def _create_tool_prompt(self) -> ToolPrompt:
0 commit comments