We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f5d26c9 + 2d39cce commit 781cdb9Copy full SHA for 781cdb9
1 file changed
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