Add api key and sorting on scoreboard
This commit is contained in:
parent
36b686bbd4
commit
4688a73559
14 changed files with 791 additions and 227 deletions
7
types.ts
7
types.ts
|
|
@ -36,14 +36,17 @@ export const COLOR_SCHEMES: ColorScheme[] = [
|
|||
{ id: 'rose', name: 'Rose', primary: '#e11d48', primaryDark: '#be123c', primaryDarker: '#5f1a2a' },
|
||||
];
|
||||
|
||||
export type AIProvider = 'gemini' | 'openrouter';
|
||||
export type AIProvider = 'gemini' | 'openrouter' | 'openai';
|
||||
|
||||
export interface UserPreferences {
|
||||
colorScheme: string;
|
||||
aiProvider?: AIProvider;
|
||||
geminiApiKey?: string;
|
||||
geminiModel?: string;
|
||||
openRouterApiKey?: string;
|
||||
openRouterModel?: string;
|
||||
openAIApiKey?: string;
|
||||
openAIModel?: string;
|
||||
}
|
||||
|
||||
export type GameRole = 'HOST' | 'CLIENT';
|
||||
|
|
@ -134,7 +137,9 @@ export interface GenerateQuizOptions {
|
|||
documents?: ProcessedDocument[];
|
||||
aiProvider?: AIProvider;
|
||||
apiKey?: string;
|
||||
geminiModel?: string;
|
||||
openRouterModel?: string;
|
||||
openAIModel?: string;
|
||||
}
|
||||
|
||||
export interface PointsBreakdown {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue