@@ -149,3 +149,32 @@ export interface TokenUsageEvent {
|
||||
total_tokens: number;
|
||||
occurred_at: string;
|
||||
}
|
||||
|
||||
export type LlmProviderType = "anthropic" | "openai-compatible";
|
||||
|
||||
export interface LlmProviderProfile {
|
||||
id: string;
|
||||
name: string;
|
||||
provider_type: LlmProviderType;
|
||||
model: string;
|
||||
base_url: string | null;
|
||||
timeout_seconds: number;
|
||||
enabled: boolean;
|
||||
revision: number;
|
||||
has_api_key: boolean;
|
||||
key_last_rotated_at: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
active: boolean;
|
||||
}
|
||||
|
||||
export interface LlmProviderSettings {
|
||||
active_profile_id: string | null;
|
||||
revision: number;
|
||||
updated_at: string | null;
|
||||
}
|
||||
|
||||
export interface LlmProviderProfileListResponse {
|
||||
settings: LlmProviderSettings;
|
||||
items: LlmProviderProfile[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user