mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
🔃 refactor: Allow streaming for o1 models in OpenAIClient and agent runs (#6509)
This commit is contained in:
parent
1d29c1efa6
commit
c4fea9cd79
2 changed files with 0 additions and 12 deletions
|
|
@ -1346,14 +1346,6 @@ ${convo}
|
|||
let streamResolve;
|
||||
|
||||
if (
|
||||
this.isOmni === true &&
|
||||
(this.azure || /o1(?!-(?:mini|preview)).*$/.test(modelOptions.model)) &&
|
||||
!/o3-.*$/.test(this.modelOptions.model) &&
|
||||
modelOptions.stream
|
||||
) {
|
||||
delete modelOptions.stream;
|
||||
delete modelOptions.stop;
|
||||
} else if (
|
||||
(!this.isOmni || /^o1-(mini|preview)/i.test(modelOptions.model)) &&
|
||||
modelOptions.reasoning_effort != null
|
||||
) {
|
||||
|
|
|
|||
|
|
@ -51,10 +51,6 @@ async function createRun({
|
|||
) {
|
||||
reasoningKey = 'reasoning';
|
||||
}
|
||||
if (/o1(?!-(?:mini|preview)).*$/.test(llmConfig.model)) {
|
||||
llmConfig.streaming = false;
|
||||
llmConfig.disableStreaming = true;
|
||||
}
|
||||
|
||||
/** @type {StandardGraphConfig} */
|
||||
const graphConfig = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue