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 c9c07c8 commit 7ad9e19Copy full SHA for 7ad9e19
src/api/providers/pearai.ts
@@ -63,11 +63,11 @@ export class PearAiHandler extends BaseProvider implements SingleCompletionHandl
63
const underlyingModel = data.models[modelId]?.underlyingModel || "claude-3-5-sonnet-20241022"
64
console.dir(underlyingModel)
65
if (underlyingModel.startsWith("deepseek")) {
66
- this.handler = new DeepSeekHandler({
+ this.handler = new OpenRouterHandler({
67
...options,
68
- deepSeekApiKey: options.pearaiApiKey,
69
- deepSeekBaseUrl: PEARAI_URL,
70
- apiModelId: underlyingModel,
+ openRouterBaseUrl: PEARAI_URL,
+ openRouterApiKey: options.pearaiApiKey,
+ openRouterModelId: underlyingModel,
71
})
72
} else {
73
// Default to Claude
0 commit comments