MCPcopy Create free account
hub / github.com/arctic-cli/interface / error

Function error

packages/arctic/src/provider/transform.ts:435–445  ·  view source on GitHub ↗
(providerID: string, error: APICallError)

Source from the content-addressed store, hash-verified

433 }
434
435 export function error(providerID: string, error: APICallError) {
436 let message = error.message
437 if (providerID === "github-copilot" && message.includes("The requested model is not supported")) {
438 return (
439 message +
440 "\n\nMake sure the model is enabled in your copilot settings: https://github.com/settings/copilot/features"
441 )
442 }
443
444 return message
445 }
446}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected