@wavequery/conductor
Version:
Modular LLM orchestration framework
14 lines (13 loc) • 599 B
TypeScript
import { LLMProvider, LLMConfig, LLMResponse, LLMChatModel, LLMFunction, LLMFunctionResponse } from "@/types/interfaces/llm";
export interface OpenAIProviderConfig {
apiKey: string;
organizationId?: string;
defaultModel?: LLMChatModel;
}
export declare class OpenAIProvider implements LLMProvider {
private client;
private defaultModel;
constructor(config: OpenAIProviderConfig);
complete(prompt: string, options?: LLMConfig): Promise<LLMResponse>;
completeWithFunctions(prompt: string, functions: LLMFunction[], options?: LLMConfig): Promise<LLMFunctionResponse>;
}