feat(ai-providers): add prefix editing for provider configs

This commit is contained in:
Supra4E8C
2025-12-21 23:46:39 +08:00
parent f8ed787f92
commit 68974ffc68
6 changed files with 82 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ export interface ApiKeyEntry {
export interface GeminiKeyConfig {
apiKey: string;
prefix?: string;
baseUrl?: string;
headers?: Record<string, string>;
excludedModels?: string[];
@@ -25,6 +26,7 @@ export interface GeminiKeyConfig {
export interface ProviderKeyConfig {
apiKey: string;
prefix?: string;
baseUrl?: string;
proxyUrl?: string;
headers?: Record<string, string>;
@@ -34,6 +36,7 @@ export interface ProviderKeyConfig {
export interface OpenAIProviderConfig {
name: string;
prefix?: string;
baseUrl: string;
apiKeyEntries: ApiKeyEntry[];
headers?: Record<string, string>;