Skip to content

feature: 支持用户传入http client 到 OpenAIModel 中来控制连接的生命周期#83

Merged
helloopenworld merged 1 commit into
mainfrom
feature/http_client_to_model
Jun 18, 2026
Merged

feature: 支持用户传入http client 到 OpenAIModel 中来控制连接的生命周期#83
helloopenworld merged 1 commit into
mainfrom
feature/http_client_to_model

Conversation

@raychen911

Copy link
Copy Markdown
Contributor
  • 修改trace的调用方式避免上传trace不全

@raychen911 raychen911 force-pushed the feature/http_client_to_model branch 2 times, most recently from ed3f5db to 9d34038 Compare June 18, 2026 06:33
@raychen911 raychen911 force-pushed the feature/http_client_to_model branch from 9d34038 to c46b645 Compare June 18, 2026 06:43
Comment thread trpc_agent_sdk/models/_openai_model.py Outdated
# An externally-injected http client is owned by the caller and
# reused across requests; only close clients we created ourselves.
if self._http_client is None:
await client.close()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个client的关闭是不是可以去掉?

@helloopenworld helloopenworld merged commit bc647c1 into main Jun 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants