Skip to content

Commit dc97dfb

Browse files
committed
feat: add option to enable streaming for Mistral model in API settings
1 parent 8d3053b commit dc97dfb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,16 @@ const ApiOptions = ({
348348
</div>
349349
)}
350350

351+
<p>
352+
<div style={{ display: "flex", alignItems: "center" }}>
353+
<Checkbox
354+
checked={apiConfiguration?.mistralModelStreamingEnabled}
355+
onChange={handleInputChange("mistralModelStreamingEnabled", noTransform)}>
356+
Enable streaming
357+
</Checkbox>
358+
</div>
359+
</p>
360+
351361
<VSCodeTextField
352362
value={apiConfiguration?.stopToken}
353363
style={{ width: "100%", marginTop: "10px" }}
@@ -363,16 +373,6 @@ const ApiOptions = ({
363373
}}>
364374
Optional token to stop generation when encountered
365375
</p>
366-
367-
<p>
368-
<div style={{ display: "flex", alignItems: "center" }}>
369-
<Checkbox
370-
checked={apiConfiguration?.mistralModelStreamingEnabled}
371-
onChange={handleInputChange("mistralModelStreamingEnabled", noTransform)}>
372-
Enable streaming
373-
</Checkbox>
374-
</div>
375-
</p>
376376
</div>
377377
)}
378378

0 commit comments

Comments
 (0)