We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5d26c9 commit 2d39cceCopy full SHA for 2d39cce
src/api/providers/pearai.ts
@@ -94,15 +94,13 @@ export class PearAiHandler extends BaseProvider implements SingleCompletionHandl
94
apiKey: options.pearaiApiKey,
95
anthropicBaseUrl: PEARAI_URL,
96
})
97
- } else if (modelId.startsWith("deepseek")) {
+ } else {
98
this.handler = new OpenRouterHandler({
99
...options,
100
openRouterBaseUrl: PEARAI_URL,
101
openRouterApiKey: options.pearaiApiKey,
102
openRouterModelId: modelId,
103
104
- } else {
105
- throw new Error(`Unsupported model: ${modelId}`)
106
}
107
108
0 commit comments