Ver Fonte

fix: #5064 ProviderInitError github-copilot-enterprise (#5123)

Julian Visser há 9 meses atrás
pai
commit
52db0f23a6
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      packages/opencode/src/provider/provider.ts

+ 4 - 0
packages/opencode/src/provider/provider.ts

@@ -490,6 +490,10 @@ export namespace Provider {
         ...githubCopilot,
         id: "github-copilot-enterprise",
         name: "GitHub Copilot Enterprise",
+        models: mapValues(githubCopilot.models, (model) => ({
+          ...model,
+          providerID: "github-copilot-enterprise",
+        })),
       }
     }