@langchain/openai 0.0.32 → 0.0.33

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.
@@ -6,7 +6,7 @@ import { type StructuredToolInterface } from "@langchain/core/tools";
6
6
  import { BaseChatModel, LangSmithParams, type BaseChatModelParams } from "@langchain/core/language_models/chat_models";
7
7
  import type { BaseFunctionCallOptions, BaseLanguageModelInput, StructuredOutputMethodOptions, StructuredOutputMethodParams } from "@langchain/core/language_models/base";
8
8
  import { z } from "zod";
9
- import { Runnable, RunnableInterface } from "@langchain/core/runnables";
9
+ import { Runnable } from "@langchain/core/runnables";
10
10
  import type { AzureOpenAIInput, OpenAICallOptions, OpenAIChatInput, OpenAICoreRequestOptions, LegacyOpenAIInput } from "./types.js";
11
11
  export type { AzureOpenAIInput, OpenAICallOptions, OpenAIChatInput };
12
12
  interface TokenUsage {
@@ -104,7 +104,7 @@ export declare class ChatOpenAI<CallOptions extends ChatOpenAICallOptions = Chat
104
104
  /** @deprecated */
105
105
  configuration?: ClientOptions & LegacyOpenAIInput);
106
106
  protected getLsParams(options: this["ParsedCallOptions"]): LangSmithParams;
107
- bindTools(tools: (Record<string, unknown> | StructuredToolInterface)[], kwargs?: Partial<CallOptions>): RunnableInterface<BaseLanguageModelInput, AIMessageChunk, CallOptions>;
107
+ bindTools(tools: (Record<string, unknown> | StructuredToolInterface)[], kwargs?: Partial<CallOptions>): Runnable<BaseLanguageModelInput, AIMessageChunk, CallOptions>;
108
108
  /**
109
109
  * Get the parameters used to invoke the model
110
110
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/openai",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "description": "OpenAI integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {
@@ -39,7 +39,7 @@
39
39
  "author": "LangChain",
40
40
  "license": "MIT",
41
41
  "dependencies": {
42
- "@langchain/core": ">0.1.56 <0.3.0",
42
+ "@langchain/core": ">0.1.56 <0.3.0",
43
43
  "js-tiktoken": "^1.0.12",
44
44
  "openai": "^4.41.1",
45
45
  "zod": "^3.22.4",