We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b3756c2 + 623646b commit 35aad68Copy full SHA for 35aad68
1 file changed
src/api/providers/pearai/pearai.ts
@@ -119,8 +119,8 @@ export class PearAiHandler extends BaseProvider implements SingleCompletionHandl
119
getModel(): { id: string; info: ModelInfo } {
120
if (this.options.apiModelId) {
121
let modelInfo = null
122
- if (this.options.apiModelId === "pearai-model") {
123
- modelInfo = this.pearAiModelsResponse?.models["pearai-model"].underlyingModelUpdated
+ if (this.options.apiModelId.startsWith("pearai")) {
+ modelInfo = this.pearAiModelsResponse?.models[this.options.apiModelId].underlyingModelUpdated
124
} else if (this.pearAiModelsResponse) {
125
modelInfo = this.pearAiModelsResponse.models[this.options.apiModelId || "pearai-model"]
126
}
0 commit comments