Skip to content

Commit 50b236c

Browse files
committed
Use startsWith
1 parent 196e2b5 commit 50b236c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/api/fim/completions/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ function resolveFimProvider(model: string): {
4343
upstreamUrl: MISTRAL_FIM_URL,
4444
};
4545
}
46-
if (model === 'inception/mercury-edit') {
46+
if (model.startsWith('inception/')) {
4747
return {
4848
provider: 'inception',
49-
upstreamModel: 'mercury-edit',
49+
upstreamModel: model.slice('inception/'.length),
5050
upstreamUrl: INCEPTION_FIM_URL,
5151
};
5252
}

0 commit comments

Comments
 (0)