jorel
Version:
A unified wrapper for working with LLMs from multiple providers, including streams, images, documents & automatic tool use.
25 lines (24 loc) • 474 B
TypeScript
export interface OpenAiToolCall {
id: string;
function: {
name: string;
arguments: string;
};
}
export interface OpenAIConfig {
azure?: false;
apiKey?: string;
apiUrl?: string;
name?: string;
maxRetries?: number;
timeout?: number;
}
export interface OpenAiAzureConfig {
azure: true;
apiKey?: string;
apiUrl?: string;
apiVersion?: string;
name?: string;
maxRetries?: number;
timeout?: number;
}