(providerID: string, error: APICallError)
| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected