simple-ai-provider
Version:
A simple and extensible AI provider package for easy integration of multiple AI services
46 lines (45 loc) • 1.28 kB
TypeScript
/**
* Shared defaults used across all providers.
*/
export declare const DEFAULT_TIMEOUT_MS = 30000;
export declare const DEFAULT_MAX_RETRIES = 3;
export declare const DEFAULT_MAX_TOKENS = 1000;
export declare const DEFAULT_TEMPERATURE = 0.7;
/**
* Minimal prompt used to validate API credentials on initialization.
*/
export declare const VALIDATION_PROMPT = "Hi";
export declare const DEFAULT_MODELS: {
readonly claude: "claude-3-5-sonnet-20241022";
readonly openai: "gpt-4o";
readonly gemini: "gemini-2.5-flash";
readonly openwebui: "llama3.1:latest";
readonly 'claude-code': "sonnet";
};
export declare const DEFAULT_OPENWEBUI_BASE_URL = "http://localhost:3000";
export declare const DEFAULT_ANTHROPIC_VERSION = "2023-06-01";
/**
* Bounds for configuration value validation.
*/
export declare const CONFIG_BOUNDS: {
readonly timeoutMs: {
readonly min: 1000;
readonly max: 300000;
};
readonly maxRetries: {
readonly min: 0;
readonly max: 10;
};
readonly temperature: {
readonly min: 0;
readonly max: 1;
};
readonly topP: {
readonly min: 0;
readonly max: 1;
readonly exclusiveMin: true;
};
readonly maxTokens: {
readonly min: 1;
};
};