소스 검색

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

Julian Visser 10 달 전
부모
커밋
52db0f23a6
1개의 변경된 파일과 4개의 추가작업 그리고 0개의 파일을 삭제
  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,
         ...githubCopilot,
         id: "github-copilot-enterprise",
         id: "github-copilot-enterprise",
         name: "GitHub Copilot Enterprise",
         name: "GitHub Copilot Enterprise",
+        models: mapValues(githubCopilot.models, (model) => ({
+          ...model,
+          providerID: "github-copilot-enterprise",
+        })),
       }
       }
     }
     }