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
2026-02-15 05:40:55 +05:00
committed by GitHub
parent d9bf4c9e59
commit 69131295db
2 changed files with 109 additions and 1 deletions

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",