-
Notifications
You must be signed in to change notification settings - Fork 84
🤖 fix: adapt Copilot Responses streams for AI SDK #2967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
df49b9cd
wants to merge
11
commits into
coder:main
Choose a base branch
from
df49b9cd:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,368
−25
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ad5b3e0
feat: endpoint-aware GitHub Copilot model creation
df49b9cd 2409586
fix: narrow LanguageModel union type in Copilot endpoint tests
df49b9cd 5ad0445
fix(modelCapabilities): prefer provider-scoped keys over bare model i…
df49b9cd 62e88f1
fix: pass providersConfig to Copilot endpoint resolution
df49b9cd 8e5a7fb
fix: add Copilot Responses streaming adapter
df49b9cd cfc1473
feat(copilot-responses): handle remaining lifecycle events from accep…
df49b9cd 8cdb250
fix: use optional chaining in copilotResponsesModel (prefer-optional-…
df49b9cd 772ab91
fix(copilot): use external itemId in flush() text-end, not internal m…
df49b9cd 8438b53
fix: remove unnecessary non-null assertions in copilotResponsesModel …
df49b9cd bd94b30
fix: address review findings on Copilot Responses adapter
df49b9cd f138fc9
fix: normalize oversized tool call IDs for OpenAI Responses API
df49b9cd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reordering
generateLookupKeysto check provider-scoped keys first changesgetModelCapabilitiesbehavior for every provider-prefixed model, not just endpoint selection: the function now returns as soon as it finds a provider entry, even when that entry omits capability fields that exist on the bare model. For example,github_copilot/gpt-4oandgithub_copilot/gpt-4.1inmodels.jsonlacksupports_pdf_input, while baregpt-4o/gpt-4.1set it totrue; with this ordering,getSupportedInputMediaTypes("github-copilot:gpt-4o")will drop"pdf", regressing attachment support for those Copilot models.Useful? React with 👍 / 👎.