Set whether to stream responses for this model individually, overriding the global setting
This commit is contained in:
@@ -912,7 +912,7 @@
|
||||
|
||||
await tick();
|
||||
|
||||
const stream = $settings?.streamResponse ?? true;
|
||||
const stream = model?.info?.params?.stream_response ?? $settings?.streamResponse ?? true;
|
||||
const [res, controller] = await generateChatCompletion(localStorage.token, {
|
||||
stream: stream,
|
||||
model: model.id,
|
||||
@@ -1206,7 +1206,7 @@
|
||||
await tick();
|
||||
|
||||
try {
|
||||
const stream = $settings?.streamResponse ?? true;
|
||||
const stream = model?.info?.params?.stream_response ?? $settings?.streamResponse ?? true;
|
||||
const [res, controller] = await generateOpenAIChatCompletion(
|
||||
localStorage.token,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user