UNPKG

openai-compatible-providers-framework

Version:

OpenAI Compatible Providers Framework with Qwen and iFlow tool calling support, OAuth authentication, dynamic module loading, and comprehensive debug logging system

40 lines 1.14 kB
/** * Build-ready exports for OpenAI Compatible Providers * 构建就绪的OpenAI兼容提供商导出 */ import { SimpleDebugLogManager } from './framework/SimpleDebugLogManager'; import { DEFAULT_DEBUG_CONFIG } from './types/debug-types'; export { SimpleDebugLogManager }; export { DEFAULT_DEBUG_CONFIG }; export type { DebugConfig } from './types/debug-types'; export interface ProviderConfig { name: string; endpoint: string; supportedModels?: string[]; defaultModel?: string; apiKey?: string; timeout?: number; maxRetries?: number; } export interface ChatMessage { role: 'system' | 'user' | 'assistant'; content: string; } export interface ChatRequest { messages: ChatMessage[]; model?: string; temperature?: number; maxTokens?: number; stream?: boolean; } export interface ChatResponse { content: string; model: string; totalTokens: number; } declare const _default: { SimpleDebugLogManager: typeof SimpleDebugLogManager; DEFAULT_DEBUG_CONFIG: import("./types/debug-types").DebugConfig; }; export default _default; //# sourceMappingURL=index-build.d.ts.map