Przeglądaj źródła

fix(provider): remove obsolete copilot model enablement instructions (#12739)

fgonzalezurriola 1 tydzień temu
rodzic
commit
d40dffb854

+ 0 - 6
packages/opencode/src/provider/transform.ts

@@ -830,12 +830,6 @@ export namespace ProviderTransform {
     if (providerID.includes("github-copilot") && error.statusCode === 403) {
     if (providerID.includes("github-copilot") && error.statusCode === 403) {
       return "Please reauthenticate with the copilot provider to ensure your credentials work properly with OpenCode."
       return "Please reauthenticate with the copilot provider to ensure your credentials work properly with OpenCode."
     }
     }
-    if (providerID.includes("github-copilot") && message.includes("The requested model is not supported")) {
-      return (
-        message +
-        "\n\nMake sure the model is enabled in your copilot settings: https://github.com/settings/copilot/features"
-      )
-    }
 
 
     return message
     return message
   }
   }

+ 0 - 2
packages/web/src/content/docs/providers.mdx

@@ -791,8 +791,6 @@ To use your GitHub Copilot subscription with opencode:
 :::note
 :::note
 Some models might need a [Pro+
 Some models might need a [Pro+
 subscription](https://github.com/features/copilot/plans) to use.
 subscription](https://github.com/features/copilot/plans) to use.
-
-Some models need to be manually enabled in your [GitHub Copilot settings](https://docs.github.com/en/copilot/how-tos/use-ai-models/configure-access-to-ai-models#setup-for-individual-use).
 :::
 :::
 
 
 1. Run the `/connect` command and search for GitHub Copilot.
 1. Run the `/connect` command and search for GitHub Copilot.