UNPKG

jorel

Version:

A unified wrapper for working with LLMs from multiple providers, including streams, images, documents & automatic tool use.

5 lines (4 loc) 441 B
import { ChatCompletionCreateParamsBase } from "openai/resources/chat/completions"; import { JsonSpecification, LlmToolChoice } from "../llm-core-provider"; export declare const jsonResponseToOpenAi: (format?: boolean | JsonSpecification, schemaDescription?: string) => ChatCompletionCreateParamsBase["response_format"]; export declare const toolChoiceToOpenAi: (toolChoice?: LlmToolChoice) => ChatCompletionCreateParamsBase["tool_choice"];