fix(github): Implement dynamic fallback for Codex models requiring /responses endpoint (#127)

* fix(github): add dynamic fallback to /responses for Codex models

* Refactor GithubExecutor: use config for URL detection
This commit is contained in:
Bexultan authored and GitHub committed 2026-02-15 07:40:55 +07:00
1 parent d9bf4c9e59
commit 69131295db
2 files changed
+109 -1

No files matched your search

+1
View File
@@ -134,6 +134,7 @@ export const PROVIDERS = {
},
github: {
baseUrl: "https://api.githubcopilot.com/chat/completions", // GitHub Copilot API endpoint for chat
responsesUrl: "https://api.githubcopilot.com/responses",
format: "openai", // GitHub Copilot uses OpenAI-compatible format
headers: {
"copilot-integration-id": "vscode-chat",