Skip to content

Conversation

@WainWong
Copy link
Contributor

Summary

  • 添加对 reasoning 字段的兼容支持(Ollama/LMStudio 遵循 GPT-OSS 官方建议)
  • 保持与现有 reasoning_content 字段的向后兼容(DeepSeek 等)
  • 优先级:reasoning_content > reasoning(回退)

问题描述

当连接 Ollama/LMStudio 托管的思考模型(如 GPT-OSS 120B)时,界面上的思考过程始终为空。

根因:Ollama/LMStudio 在返回 JSON 中使用 reasoning 字段,而代码只提取 reasoning_content

测试方法

  1. 使用 Ollama/LMStudio 连接支持思考的模型
  2. 发送查询,确认思考过程正常显示
  3. 测试 DeepSeek 等模型确保向后兼容

…odels

Add compatibility for the `reasoning` field in addition to `reasoning_content`.
Ollama/LMStudio follows GPT-OSS official recommendation to use `reasoning`
field for thinking content, while DeepSeek uses `reasoning_content`.

Priority: reasoning_content > reasoning (fallback)
@ulleo ulleo merged commit 8c309c0 into dataease:main Jan 22, 2026
1 check 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