Skip to content

Commit 2d39cce

Browse files
committed
Added open router
1 parent f5d26c9 commit 2d39cce

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/api/providers/pearai.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,13 @@ export class PearAiHandler extends BaseProvider implements SingleCompletionHandl
9494
apiKey: options.pearaiApiKey,
9595
anthropicBaseUrl: PEARAI_URL,
9696
})
97-
} else if (modelId.startsWith("deepseek")) {
97+
} else {
9898
this.handler = new OpenRouterHandler({
9999
...options,
100100
openRouterBaseUrl: PEARAI_URL,
101101
openRouterApiKey: options.pearaiApiKey,
102102
openRouterModelId: modelId,
103103
})
104-
} else {
105-
throw new Error(`Unsupported model: ${modelId}`)
106104
}
107105
}
108106

0 commit comments

Comments
 (0)