interface ChatOpenAICallOptions {
    options?: OpenAICoreRequestOptions<Record<string, unknown>>;
    promptIndex?: number;
    response_format?: {
        type: "json_object";
    };
    seed?: number;
    stream_options?: {
        include_usage: boolean;
    };
    tool_choice?: "auto" | "required" | "none" | ChatCompletionNamedToolChoice;
    tools?: StructuredToolInterface[] | ChatCompletionTool[];
}

Hierarchy (view full)

Properties

options?: OpenAICoreRequestOptions<Record<string, unknown>>

Additional options to pass to the underlying axios request.

promptIndex?: number
response_format?: {
    type: "json_object";
}

Type declaration

  • type: "json_object"
seed?: number
stream_options?: {
    include_usage: boolean;
}

Type declaration

  • include_usage: boolean
tool_choice?: "auto" | "required" | "none" | ChatCompletionNamedToolChoice
tools?: StructuredToolInterface[] | ChatCompletionTool[]

Generated using TypeDoc