Skip to content

Commit 9a1aafe

Browse files
committed
cr
1 parent dfbfb7b commit 9a1aafe

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

libs/langchain-openai/src/chat_models.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,19 @@ export interface ChatOpenAIStructuredOutputMethodOptions<
318318
strict?: boolean;
319319
}
320320

321+
/**
322+
* @typedef {Object} ChatOpenAICallOptions
323+
* @extends OpenAICallOptions
324+
* @extends BaseFunctionCallOptions
325+
* @property {ChatOpenAIToolType[]} [tools] - Array of tools to be used by the model.
326+
* @property {OpenAIToolChoice} [tool_choice] - Specifies how the model should choose tools.
327+
* @property {number} [promptIndex] - Index of the prompt to use.
328+
* @property {{ type: "json_object" }} [response_format] - Specifies the format of the response.
329+
* @property {number} [seed] - Seed for deterministic sampling.
330+
* @property {{ include_usage: boolean }} [stream_options] - Options for streamed completions.
331+
* @property {boolean} [parallel_tool_calls] - Whether to allow parallel tool calls.
332+
* @property {boolean} [strict] - Whether to enforce strict schema validation.
333+
*/
321334
export interface ChatOpenAICallOptions
322335
extends OpenAICallOptions,
323336
BaseFunctionCallOptions {
@@ -398,7 +411,14 @@ export interface ChatOpenAIFields
398411
* console.log(message);
399412
*
400413
* ```
414+
*
415+
*
416+
* @extends {BaseChatModel<CallOptions, AIMessageChunk>}
417+
* @implements {OpenAIChatInput}
418+
* @implements {AzureOpenAIInput}
401419
*/
420+
421+
/** {@inheritDoc ChatOpenAICallOptions} */
402422
export class ChatOpenAI<
403423
CallOptions extends ChatOpenAICallOptions = ChatOpenAICallOptions
404424
>

libs/langchain-openai/src/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ export type OpenAICoreRequestOptions<
103103
idempotencyKey?: string;
104104
};
105105

106+
/**
107+
* @typedef {Object} OpenAICallOptions
108+
* @extends BaseLanguageModelCallOptions
109+
* @property {OpenAICoreRequestOptions} [options] - Additional options to pass to the underlying axios request.
110+
*/
106111
export interface OpenAICallOptions extends BaseLanguageModelCallOptions {
107112
/**
108113
* Additional options to pass to the underlying axios request.

0 commit comments

Comments
 (0)