@langchain/openai 0.6.12 → 0.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat_models.cjs +5 -3
- package/dist/chat_models.d.ts +4 -2
- package/dist/chat_models.js +5 -3
- package/package.json +1 -1
package/dist/chat_models.cjs
CHANGED
|
@@ -527,7 +527,7 @@ class BaseChatOpenAI extends chat_models_1.BaseChatModel {
|
|
|
527
527
|
* OpenAI organization or project. This must be configured directly with OpenAI.
|
|
528
528
|
*
|
|
529
529
|
* See:
|
|
530
|
-
* https://
|
|
530
|
+
* https://platform.openai.com/docs/guides/your-data
|
|
531
531
|
* https://platform.openai.com/docs/api-reference/responses/create#responses-create-store
|
|
532
532
|
*
|
|
533
533
|
* @default false
|
|
@@ -614,7 +614,7 @@ class BaseChatOpenAI extends chat_models_1.BaseChatModel {
|
|
|
614
614
|
this.promptCacheKey = fields?.promptCacheKey ?? this.promptCacheKey;
|
|
615
615
|
this.verbosity = fields?.verbosity ?? this.verbosity;
|
|
616
616
|
// disable streaming in BaseChatModel if explicitly disabled
|
|
617
|
-
if (
|
|
617
|
+
if (fields?.streaming === false)
|
|
618
618
|
this.disableStreaming = true;
|
|
619
619
|
if (this.disableStreaming === true)
|
|
620
620
|
this.streaming = false;
|
|
@@ -2217,7 +2217,9 @@ exports.ChatOpenAICompletions = ChatOpenAICompletions;
|
|
|
2217
2217
|
* timeout: undefined,
|
|
2218
2218
|
* maxRetries: 2,
|
|
2219
2219
|
* // apiKey: "...",
|
|
2220
|
-
* //
|
|
2220
|
+
* // configuration: {
|
|
2221
|
+
* // baseURL: "...",
|
|
2222
|
+
* // }
|
|
2221
2223
|
* // organization: "...",
|
|
2222
2224
|
* // other params...
|
|
2223
2225
|
* });
|
package/dist/chat_models.d.ts
CHANGED
|
@@ -166,7 +166,7 @@ export declare abstract class BaseChatOpenAI<CallOptions extends BaseChatOpenAIC
|
|
|
166
166
|
* OpenAI organization or project. This must be configured directly with OpenAI.
|
|
167
167
|
*
|
|
168
168
|
* See:
|
|
169
|
-
* https://
|
|
169
|
+
* https://platform.openai.com/docs/guides/your-data
|
|
170
170
|
* https://platform.openai.com/docs/api-reference/responses/create#responses-create-store
|
|
171
171
|
*
|
|
172
172
|
* @default false
|
|
@@ -405,7 +405,9 @@ export interface ChatOpenAIFields extends BaseChatOpenAIFields {
|
|
|
405
405
|
* timeout: undefined,
|
|
406
406
|
* maxRetries: 2,
|
|
407
407
|
* // apiKey: "...",
|
|
408
|
-
* //
|
|
408
|
+
* // configuration: {
|
|
409
|
+
* // baseURL: "...",
|
|
410
|
+
* // }
|
|
409
411
|
* // organization: "...",
|
|
410
412
|
* // other params...
|
|
411
413
|
* });
|
package/dist/chat_models.js
CHANGED
|
@@ -522,7 +522,7 @@ export class BaseChatOpenAI extends BaseChatModel {
|
|
|
522
522
|
* OpenAI organization or project. This must be configured directly with OpenAI.
|
|
523
523
|
*
|
|
524
524
|
* See:
|
|
525
|
-
* https://
|
|
525
|
+
* https://platform.openai.com/docs/guides/your-data
|
|
526
526
|
* https://platform.openai.com/docs/api-reference/responses/create#responses-create-store
|
|
527
527
|
*
|
|
528
528
|
* @default false
|
|
@@ -609,7 +609,7 @@ export class BaseChatOpenAI extends BaseChatModel {
|
|
|
609
609
|
this.promptCacheKey = fields?.promptCacheKey ?? this.promptCacheKey;
|
|
610
610
|
this.verbosity = fields?.verbosity ?? this.verbosity;
|
|
611
611
|
// disable streaming in BaseChatModel if explicitly disabled
|
|
612
|
-
if (
|
|
612
|
+
if (fields?.streaming === false)
|
|
613
613
|
this.disableStreaming = true;
|
|
614
614
|
if (this.disableStreaming === true)
|
|
615
615
|
this.streaming = false;
|
|
@@ -2209,7 +2209,9 @@ export class ChatOpenAICompletions extends BaseChatOpenAI {
|
|
|
2209
2209
|
* timeout: undefined,
|
|
2210
2210
|
* maxRetries: 2,
|
|
2211
2211
|
* // apiKey: "...",
|
|
2212
|
-
* //
|
|
2212
|
+
* // configuration: {
|
|
2213
|
+
* // baseURL: "...",
|
|
2214
|
+
* // }
|
|
2213
2215
|
* // organization: "...",
|
|
2214
2216
|
* // other params...
|
|
2215
2217
|
* });
|