fix(opencode): preserve Astra priority service tier - #47519
Closed
GuestAUser wants to merge 1 commit into
Closed
Conversation
- Update the bundled OpenAI SDK to 3.0.88 in opencode and core so GPT-6 Priority requests retain service_tier. - Add request-path regression coverage for Priority and Default while preserving max effort, explicitly detailed summaries, canonical model identity, encrypted stateless replay, tool schemas, and API-key authentication. - Keep provider identity and transport code unchanged, with lockfile changes limited to the affected SDK and provider-utils resolutions.
Contributor
|
Thanks for identifying this and verifying the SDK update. We are taking the dependency-only change forward in a separate PR, and have included you as a commit co-author. Closing this version to keep the implementation focused on the package bump. |
6 tasks
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.
Issue for this PR
Closes #47506
Type of change
What does this PR do?
Updates the bundled
@ai-sdk/openaidependency from3.0.84to3.0.88inopencodeandcore. The older SDK excludes GPT-6 from its Priority capability check and removesservice_tier: "priority"from otherwise valid Astra requests. The newer SDK recognizes it.The regression goes through OpenCode's provider resolution and
LLM.streamto a local HTTP endpoint. It checks Priority and Default with the canonical Astra model ID, max effort, an explicitly selected detailed summary, stateless encrypted reasoning, and tool replay/schema handling. The SDK package identity and authentication/transport code stay unchanged.How did you verify your code works?
3.0.84: Priority wasundefined; Default and the preceding preservation assertions passed.provider-utilsdependency.Commands ran with configuration/native-runtime environment overrides unset, using Bun
1.4.0:The new Astra assertions use the API-key request path; existing auth, WebSocket, and cancellation checks passed unchanged. This verifies the requested tier, not live account entitlement or the tier ultimately granted by OpenAI. No production binary was built.
Screenshots / recordings
Not applicable; no UI changes.
Checklist