@langchain/openai 0.4.2 → 0.4.3

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.
@@ -440,6 +440,20 @@ class AzureChatOpenAI extends chat_models_js_1.ChatOpenAI {
440
440
  azureOpenAIApiKey: "AZURE_OPENAI_API_KEY",
441
441
  };
442
442
  }
443
+ get lc_serializable_keys() {
444
+ return [
445
+ ...super.lc_serializable_keys,
446
+ "azureOpenAIApiKey",
447
+ "azureOpenAIApiVersion",
448
+ "azureOpenAIBasePath",
449
+ "azureOpenAIEndpoint",
450
+ "azureOpenAIApiInstanceName",
451
+ "azureOpenAIApiDeploymentName",
452
+ "deploymentName",
453
+ "openAIApiKey",
454
+ "openAIApiVersion",
455
+ ];
456
+ }
443
457
  constructor(fields) {
444
458
  super(fields);
445
459
  Object.defineProperty(this, "azureOpenAIApiVersion", {
@@ -432,6 +432,7 @@ export declare class AzureChatOpenAI extends ChatOpenAI {
432
432
  get lc_secrets(): {
433
433
  [key: string]: string;
434
434
  } | undefined;
435
+ get lc_serializable_keys(): string[];
435
436
  constructor(fields?: Partial<OpenAIChatInput> & Partial<AzureOpenAIInput> & {
436
437
  openAIApiKey?: string;
437
438
  openAIApiVersion?: string;
@@ -437,6 +437,20 @@ export class AzureChatOpenAI extends ChatOpenAI {
437
437
  azureOpenAIApiKey: "AZURE_OPENAI_API_KEY",
438
438
  };
439
439
  }
440
+ get lc_serializable_keys() {
441
+ return [
442
+ ...super.lc_serializable_keys,
443
+ "azureOpenAIApiKey",
444
+ "azureOpenAIApiVersion",
445
+ "azureOpenAIBasePath",
446
+ "azureOpenAIEndpoint",
447
+ "azureOpenAIApiInstanceName",
448
+ "azureOpenAIApiDeploymentName",
449
+ "deploymentName",
450
+ "openAIApiKey",
451
+ "openAIApiVersion",
452
+ ];
453
+ }
440
454
  constructor(fields) {
441
455
  super(fields);
442
456
  Object.defineProperty(this, "azureOpenAIApiVersion", {
@@ -682,6 +682,44 @@ class ChatOpenAI extends chat_models_1.BaseChatModel {
682
682
  apiKey: "openai_api_key",
683
683
  };
684
684
  }
685
+ get lc_serializable_keys() {
686
+ return [
687
+ "configuration",
688
+ "logprobs",
689
+ "topLogprobs",
690
+ "prefixMessages",
691
+ "supportsStrictToolCalling",
692
+ "modalities",
693
+ "audio",
694
+ "reasoningEffort",
695
+ "temperature",
696
+ "maxTokens",
697
+ "topP",
698
+ "frequencyPenalty",
699
+ "presencePenalty",
700
+ "n",
701
+ "logitBias",
702
+ "user",
703
+ "streaming",
704
+ "streamUsage",
705
+ "modelName",
706
+ "model",
707
+ "modelKwargs",
708
+ "stop",
709
+ "stopSequences",
710
+ "timeout",
711
+ "openAIApiKey",
712
+ "apiKey",
713
+ "cache",
714
+ "maxConcurrency",
715
+ "maxRetries",
716
+ "verbose",
717
+ "callbacks",
718
+ "tags",
719
+ "metadata",
720
+ "disableStreaming",
721
+ ];
722
+ }
685
723
  constructor(fields) {
686
724
  super(fields ?? {});
687
725
  Object.defineProperty(this, "lc_serializable", {
@@ -655,6 +655,7 @@ export declare class ChatOpenAI<CallOptions extends ChatOpenAICallOptions = Chat
655
655
  [key: string]: string;
656
656
  } | undefined;
657
657
  get lc_aliases(): Record<string, string>;
658
+ get lc_serializable_keys(): string[];
658
659
  temperature?: number;
659
660
  topP?: number;
660
661
  frequencyPenalty?: number;
@@ -677,6 +677,44 @@ export class ChatOpenAI extends BaseChatModel {
677
677
  apiKey: "openai_api_key",
678
678
  };
679
679
  }
680
+ get lc_serializable_keys() {
681
+ return [
682
+ "configuration",
683
+ "logprobs",
684
+ "topLogprobs",
685
+ "prefixMessages",
686
+ "supportsStrictToolCalling",
687
+ "modalities",
688
+ "audio",
689
+ "reasoningEffort",
690
+ "temperature",
691
+ "maxTokens",
692
+ "topP",
693
+ "frequencyPenalty",
694
+ "presencePenalty",
695
+ "n",
696
+ "logitBias",
697
+ "user",
698
+ "streaming",
699
+ "streamUsage",
700
+ "modelName",
701
+ "model",
702
+ "modelKwargs",
703
+ "stop",
704
+ "stopSequences",
705
+ "timeout",
706
+ "openAIApiKey",
707
+ "apiKey",
708
+ "cache",
709
+ "maxConcurrency",
710
+ "maxRetries",
711
+ "verbose",
712
+ "callbacks",
713
+ "tags",
714
+ "metadata",
715
+ "disableStreaming",
716
+ ];
717
+ }
680
718
  constructor(fields) {
681
719
  super(fields ?? {});
682
720
  Object.defineProperty(this, "lc_serializable", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/openai",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "OpenAI integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {
@@ -41,7 +41,7 @@
41
41
  "zod-to-json-schema": "^3.22.3"
42
42
  },
43
43
  "peerDependencies": {
44
- "@langchain/core": ">=0.3.29 <0.4.0"
44
+ "@langchain/core": ">=0.3.39 <0.4.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@azure/identity": "^4.2.1",