@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.
@@ -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://help.openai.com/en/articles/10503543-data-residency-for-the-openai-api
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 (this.streaming === false)
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
- * // baseUrl: "...",
2220
+ * // configuration: {
2221
+ * // baseURL: "...",
2222
+ * // }
2221
2223
  * // organization: "...",
2222
2224
  * // other params...
2223
2225
  * });
@@ -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://help.openai.com/en/articles/10503543-data-residency-for-the-openai-api
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
- * // baseUrl: "...",
408
+ * // configuration: {
409
+ * // baseURL: "...",
410
+ * // }
409
411
  * // organization: "...",
410
412
  * // other params...
411
413
  * });
@@ -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://help.openai.com/en/articles/10503543-data-residency-for-the-openai-api
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 (this.streaming === false)
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
- * // baseUrl: "...",
2212
+ * // configuration: {
2213
+ * // baseURL: "...",
2214
+ * // }
2213
2215
  * // organization: "...",
2214
2216
  * // other params...
2215
2217
  * });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/openai",
3
- "version": "0.6.12",
3
+ "version": "0.6.14",
4
4
  "description": "OpenAI integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {