simple-ai-provider
Version:
A simple and extensible AI provider package for easy integration of multiple AI services
19 lines (18 loc) • 631 B
TypeScript
export interface OpenWebUIHttpOptions {
baseUrl: string;
apiKey?: string;
timeout?: number;
dangerouslyAllowInsecureConnections?: boolean;
}
/**
* Thin HTTP client shared by OpenWebUI strategies.
* Handles auth header, request body serialization, and timeout-to-AIProviderError translation.
*/
export declare class OpenWebUIHttpClient {
readonly baseUrl: string;
private readonly apiKey;
private readonly timeout;
private readonly dangerouslyAllowInsecureConnections;
constructor(options: OpenWebUIHttpOptions);
request(path: string, method: string, body?: unknown): Promise<Response>;
}