Skip to content

Commit 7ad9e19

Browse files
committed
Working
1 parent c9c07c8 commit 7ad9e19

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/api/providers/pearai.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ export class PearAiHandler extends BaseProvider implements SingleCompletionHandl
6363
const underlyingModel = data.models[modelId]?.underlyingModel || "claude-3-5-sonnet-20241022"
6464
console.dir(underlyingModel)
6565
if (underlyingModel.startsWith("deepseek")) {
66-
this.handler = new DeepSeekHandler({
66+
this.handler = new OpenRouterHandler({
6767
...options,
68-
deepSeekApiKey: options.pearaiApiKey,
69-
deepSeekBaseUrl: PEARAI_URL,
70-
apiModelId: underlyingModel,
68+
openRouterBaseUrl: PEARAI_URL,
69+
openRouterApiKey: options.pearaiApiKey,
70+
openRouterModelId: underlyingModel,
7171
})
7272
} else {
7373
// Default to Claude

0 commit comments

Comments
 (0)