feat(openai): expose none and xhigh reasoning effort levels - #995
Open
gargsajal9 wants to merge 1 commit into
Open
gargsajal9 wants to merge 1 commit into
gargsajal9 wants to merge 1 commit into
Conversation
Add public reasoning effort constants without changing the released ACL dependency. Document model-specific defaults and cover serialized configuration and per-call options. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
gargsajal9
marked this pull request as ready for review
September 10, 2026 17:27
gargsajal9
force-pushed
the
gargsajal9-openai-reasoning-levels-fb7
branch
from
September 11, 2026 19:59
06246e4 to
4a4370e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
feat
Check the PR title.
<type>(optional scope): <description>.(Optional) Translate the PR title into Chinese.
feat(openai): 支持 none 和 xhigh 推理强度级别
(Optional) More detailed description for this PR(en: English/zh: Chinese).
en:
Expose
ReasoningEffortLevelNoneandReasoningEffortLevelXHighfrom the publiccomponents/model/openaipackage, bringing the wrapper API in line with the reasoning levels supported by OpenAI and ACL main.The component currently pins released ACL v0.1.17, which does not contain the corresponding named constants. To preserve standalone module compatibility without a dependency upgrade, the new public values are explicitly typed string constants. Existing string pass-through, omission behavior, and provider/model defaults remain unchanged.
This also:
noneand an omitted value;WithReasoningEffort;GenerateandStream, covering new and existing levels, omission, custom values, overrides, and config preservation.Validation:
GOWORK=off go test -mod=readonly -race -gcflags="all=-l -N" ./...GOWORK=off go vet -mod=readonly ./...GOWORK=off go mod tidy -diffgofmtandgit diff --checkThe isolated module validation resolves
github.com/cloudwego/eino-ext/libs/acl/openai v0.1.17with no workspace replacement.zh(optional):
在公共
components/model/openai包中新增ReasoningEffortLevelNone和ReasoningEffortLevelXHigh,并补充配置、单次调用覆盖及请求序列化测试。由于当前组件依赖的 ACL v0.1.17 尚未发布对应命名常量,本 PR 使用显式类型化字符串常量,以保持独立模块兼容性且不升级依赖。(Optional) Which issue(s) this PR fixes:
Fixes #947
(optional) The PR that updates user documentation:
N/A — the component's English and Chinese READMEs are updated in this PR.