feat: LLMProviderInstance over LLMProvider

allows for using multiple keys of the same provider
implemented per llm call providerinstance mapping
This commit is contained in:
2026-07-09 18:40:52 +05:30
parent 4ef52f926e
commit 46b12cd668
8 changed files with 771 additions and 88 deletions

View File

@@ -36,3 +36,11 @@ export interface ILLMProvider {
): Promise<LLMResponse<z.infer<T>>>;
lastCalls?: LLMCallRecord[];
}
export interface LLMProviderInstance {
id: string;
name: string;
providerName: string;
apiKey: string;
isActive: boolean;
}