File tree 1 file changed +5
-4
lines changed
libs/langchain-openai/src
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1568,13 +1568,14 @@ export class ChatOpenAI<
1568
1568
this . reasoningEffort = fields ?. reasoningEffort ;
1569
1569
this . maxTokens = fields ?. maxCompletionTokens ?? fields ?. maxTokens ;
1570
1570
this . useResponsesApi = fields ?. useResponsesApi ?? this . useResponsesApi ;
1571
-
1572
- if ( this . model === "o1" ) {
1573
- this . disableStreaming = true ;
1574
- }
1571
+ this . disableStreaming = fields ?. disableStreaming ?? this . disableStreaming ;
1572
+ if ( this . model === "o1" ) this . disableStreaming = true ;
1575
1573
1576
1574
this . streaming = fields ?. streaming ?? false ;
1575
+ if ( this . disableStreaming ) this . streaming = false ;
1576
+
1577
1577
this . streamUsage = fields ?. streamUsage ?? this . streamUsage ;
1578
+ if ( this . disableStreaming ) this . streamUsage = false ;
1578
1579
1579
1580
this . clientConfig = {
1580
1581
apiKey : this . apiKey ,
You can’t perform that action at this time.
0 commit comments