@naktibalda/jorel
Version:
The easiest way to use LLMs, including streams, images, documents, tools and various agent scenarios.
5 lines (4 loc) • 441 B
TypeScript
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"];