Bladeren bron

fix(opencode): pass configured headers to Copilot models (#32815)

Aiden Cline 4 maanden geleden
bovenliggende
commit
ec50db334b
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      packages/opencode/src/plugin/github-copilot/copilot.ts

+ 1 - 0
packages/opencode/src/plugin/github-copilot/copilot.ts

@@ -70,6 +70,7 @@ export async function CopilotAuthPlugin(input: PluginInput): Promise<Hooks> {
         return CopilotModels.get(
           base(auth.enterpriseUrl),
           {
+            ...(provider.options?.headers as Record<string, string> | undefined),
             Authorization: `Bearer ${auth.refresh}`,
             "User-Agent": `opencode/${InstallationVersion}`,
             "X-GitHub-Api-Version": API_VERSION,