Skip to content

fix(openai): refine reasoning effort handling - #5602

Open
YoungZM339 wants to merge 2 commits into
Wei-Shaw:mainfrom
YoungZM339:codex/fix-reasoning-effort-5575-5576
Open

YoungZM339 wants to merge 2 commits into
Wei-Shaw:mainfrom
YoungZM339:codex/fix-reasoning-effort-5575-5576

Conversation

@YoungZM339

Copy link
Copy Markdown

Summary

  • support global and exact-model reasoning-effort mappings, with model-scoped rules taking precedence
  • apply mappings consistently across Responses, Chat Completions, Messages, composite, and WebSocket requests
  • preserve max for GPT-5.6 and DeepSeek V4 models (including provider-prefixed and mapped aliases), while preserving prior behavior for older DeepSeek models
  • add admin UI support and validation for model-scoped rules

Validation

  • go test -count=1 -tags=unit ./internal/service ./internal/handler
  • pnpm vitest run src/views/admin/__tests__/groupsReasoningEffort.spec.ts
  • pnpm vue-tsc --noEmit
  • pnpm eslint src/components/admin/group/ReasoningEffortPolicyFields.vue src/views/admin/groupsReasoningEffort.ts src/views/admin/__tests__/groupsReasoningEffort.spec.ts src/types/index.ts src/i18n/locales/en/admin/overview.ts src/i18n/locales/zh/admin/overview.ts
  • git diff --check

Fixes #5575
Fixes #5576

@github-actions

github-actions Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@YoungZM339

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

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.

Deepseek v4系列response api不支持Max推理强度 推理强度映射希望支持更细粒度的控制

1 participant