add bring your own key support

This commit is contained in:
Krrish Ghimire
2026-07-06 22:45:24 +05:45
parent a6a9ac6e7e
commit 25db5b2970
23 changed files with 950 additions and 353 deletions

View File

@@ -1,13 +1,21 @@
export interface LLMGenerateRequest {
prompt: string;
siteId: string;
provider: string;
apiKey?: string;
baseUrl?: string;
model?: string;
references?: Reference[];
}
export interface LLMRefineRequest {
prompt: string;
siteId: string;
provider: string;
currentStructure: SiteStructure;
apiKey?: string;
baseUrl?: string;
model?: string;
references?: Reference[];
}
@@ -64,3 +72,11 @@ export interface GenerationVersion {
fullStructure: string;
createdAt: string;
}
export interface LLMKeyEntry {
configured: boolean;
baseUrl?: string;
model?: string;
}
export type LLMKeyStatus = Record<string, LLMKeyEntry>;