Skip to content

Commit 781cdb9

Browse files
authored
Merge pull request #48 from trypear/backup-open-router
Added open router
2 parents f5d26c9 + 2d39cce commit 781cdb9

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)