Skip to content

langchain-openai 无法读取到 qwen3 think 的过程 希望 支持 qwen3 像 支持 deepseek一样(initChatModel) #33672

@CodeXiaoHan

Description

@CodeXiaoHan

Checked other resources

  • This is a feature request, not a bug report or usage question.
  • I added a clear and descriptive title that summarizes the feature request.
  • I used the GitHub search to find a similar feature request and didn't find it.
  • I checked the LangChain documentation and API reference to see if this feature already exists.
  • This is not related to the langchain-community package.

Feature Description

langchain-openai 支持 qwen3 像 支持 deepseek 一样(initChatModel)可以获取 qwen3 think 的过程

Use Case

langchain-openai 无法读取到 qwen3 think 的过程 希望 支持 qwen3 像 支持 deepseek一样(initChatModel)
描述:我在使用 createAgent 的时候发现 使用 chatOpenAI 传入 qwen3 的模型(支持思考模式)后 ,无法 获取到 qwen3的思考过程,尝试了很多都无法实现。
使用 ChatTongyi 无法满足我调用本地服务器上的qwen3模型的,因为它的 baseURL 或 apiURL 不允许修改。
最重要的一点是:像 qwen3 这种支持思考的模式 ,我在使用 createAgent 的时候,获取不到思考过程,导致不管是 invoke 或 stream 都会等待很长时间才会有内容输出,会让用户以为功能有问题。

Proposed Solution

No response

Alternatives Considered

尝试过替换为 openAI 官方 SDK 是可以实现 获取 qwen3 的思考过程,但这和 langchain 就没有任何关系了

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestrequest for an enhancement / additional functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions