Skip to content

Commit

Permalink
Remove unnecessary type
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Jun 20, 2024
1 parent 8ff925d commit 827b491
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libs/langchain-openai/src/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ import type {
OpenAIChatInput,
OpenAICoreRequestOptions,
LegacyOpenAIInput,
OpenAIInput,
} from "./types.js";
import { type OpenAIEndpointConfig, getEndpoint } from "./utils/azure.js";
import { wrapOpenAIClientError } from "./utils/openai.js";
Expand Down Expand Up @@ -250,17 +249,15 @@ function convertMessagesToOpenAIParams(messages: BaseMessage[]) {

export interface ChatOpenAICallOptions
extends OpenAICallOptions,
BaseFunctionCallOptions,
Pick<OpenAIInput, "streamUsage"> {
BaseFunctionCallOptions {
tools?: StructuredToolInterface[] | OpenAIClient.ChatCompletionTool[];
tool_choice?: OpenAIClient.ChatCompletionToolChoiceOption;
promptIndex?: number;
response_format?: { type: "json_object" };
seed?: number;
/**
* Additional options to pass to streamed completions.
*
* stream_options, if provided takes precedence over streamUsage.
* If provided takes precedence over "streamUsage" set at initialization time.
*/
stream_options?: {
/**
Expand Down

0 comments on commit 827b491

Please sign in to comment.