Skip to content

Commit 8842497

Browse files
committed
fix: Update ApiOptions to handle default model ID for codestral URLs
1 parent 2fa8dc7 commit 8842497

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webview-ui/src/components/settings/ApiOptions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ const ApiOptions = ({ apiErrorMessage, modelIdErrorMessage, fromWelcomeView }: A
314314
placeholder="Enter API Key...">
315315
<span style={{ fontWeight: 500 }}>Mistral API Key</span>
316316
</VSCodeTextField>
317-
318317
<p
319318
style={{
320319
fontSize: "12px",
@@ -335,7 +334,8 @@ const ApiOptions = ({ apiErrorMessage, modelIdErrorMessage, fromWelcomeView }: A
335334
)}
336335
</p>
337336

338-
{apiConfiguration?.apiModelId?.startsWith("codestral-") && (
337+
{(apiConfiguration?.apiModelId?.startsWith("codestral-") ||
338+
(!apiConfiguration?.apiModelId && mistralDefaultModelId.startsWith("codestral-"))) && (
339339
<div>
340340
<VSCodeTextField
341341
value={apiConfiguration?.mistralCodestralUrl || ""}

0 commit comments

Comments
 (0)