langchain 0.0.182-rc.0 → 0.0.182-rc.1

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.
@@ -127,6 +127,8 @@ class ChatOpenAI extends base_js_1.BaseChatModel {
127
127
  "functions",
128
128
  "tools",
129
129
  "promptIndex",
130
+ "response_format",
131
+ "seed",
130
132
  ];
131
133
  }
132
134
  get lc_secrets() {
@@ -370,6 +372,8 @@ class ChatOpenAI extends base_js_1.BaseChatModel {
370
372
  ? options?.tools.map(convert_to_openai_js_1.formatToOpenAIFunction)
371
373
  : undefined),
372
374
  function_call: options?.function_call,
375
+ response_format: options?.response_format,
376
+ seed: options?.seed,
373
377
  ...this.modelKwargs,
374
378
  };
375
379
  }
@@ -17,6 +17,10 @@ interface OpenAILLMOutput {
17
17
  export interface ChatOpenAICallOptions extends OpenAICallOptions, BaseFunctionCallOptions {
18
18
  tools?: StructuredTool[];
19
19
  promptIndex?: number;
20
+ response_format?: {
21
+ type: "json_object";
22
+ };
23
+ seed?: number;
20
24
  }
21
25
  /**
22
26
  * Wrapper around OpenAI large language models that use the Chat endpoint.
@@ -124,6 +124,8 @@ export class ChatOpenAI extends BaseChatModel {
124
124
  "functions",
125
125
  "tools",
126
126
  "promptIndex",
127
+ "response_format",
128
+ "seed",
127
129
  ];
128
130
  }
129
131
  get lc_secrets() {
@@ -367,6 +369,8 @@ export class ChatOpenAI extends BaseChatModel {
367
369
  ? options?.tools.map(formatToOpenAIFunction)
368
370
  : undefined),
369
371
  function_call: options?.function_call,
372
+ response_format: options?.response_format,
373
+ seed: options?.seed,
370
374
  ...this.modelKwargs,
371
375
  };
372
376
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langchain",
3
- "version": "0.0.182-rc.0",
3
+ "version": "0.0.182-rc.1",
4
4
  "description": "Typescript bindings for langchain",
5
5
  "type": "module",
6
6
  "engines": {
@@ -805,7 +805,6 @@
805
805
  "precommit": "lint-staged",
806
806
  "clean": "rimraf dist/ && NODE_OPTIONS=--max-old-space-size=4096 node scripts/create-entrypoints.js pre",
807
807
  "prepack": "yarn build",
808
- "prerelease": "npm publish",
809
808
  "release": "release-it --only-version --config .release-it.json",
810
809
  "test": "NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",
811
810
  "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",