-
Notifications
You must be signed in to change notification settings - Fork 307
fix(search): keep native routing aligned with model wire #2179
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -444,12 +444,26 @@ function usesKimiOpenAiChat(connection: RuntimeExecutionConnection, modelId: str | |
|
|
||
| function usesOpenAiResponses(connection: RuntimeExecutionConnection, modelId: string): boolean { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P1 — Remove the stale parallel wire resolver after rebasing. Current |
||
| const runtime = resolveModelRuntime(connection, modelId); | ||
| if (runtime.adapter.kind !== 'openai') return false; | ||
| return ( | ||
| runtime.adapter.apiProtocol === 'openai-responses' || | ||
| runtime.apiProtocol === 'openai-responses' || | ||
| openAiAdapterApiProtocol(modelId, connection.providerType) === 'openai-responses' | ||
| ); | ||
| switch (runtime.adapter.kind) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [P1] Drop this Runtime-side wire precedence table when rebasing. This one-commit branch is 903 commits behind current |
||
| case 'openai-codex': | ||
| return true; | ||
| case 'github-copilot': | ||
| return runtime.apiProtocol === 'openai-responses'; | ||
| case 'openai': | ||
| return ( | ||
| (runtime.adapter.apiProtocol ?? | ||
| runtime.apiProtocol ?? | ||
| openAiAdapterApiProtocol(modelId, connection.providerType)) === 'openai-responses' | ||
| ); | ||
| case 'openai-compatible': | ||
| return ( | ||
| runtime.adapter.supportsOpenAiResponses === true && | ||
| (runtime.apiProtocol ?? openAiAdapterApiProtocol(modelId, connection.providerType)) === | ||
| 'openai-responses' | ||
| ); | ||
| default: | ||
| return false; | ||
| } | ||
| } | ||
|
|
||
| function fixedAnthropicThinkingBudget( | ||
|
|
||
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.
1. Gpt-5 wire rules diverge
🐞 Bug≡ CorrectnessAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools