- Next.js 14+ with App Router and TypeScript - Tailwind CSS and ShadCN UI styling - Zustand state management - Dexie.js for IndexedDB (local-first data) - Auth.js v5 for authentication - BMAD framework integration Co-Authored-By: Claude <noreply@anthropic.com>
25 lines
727 B
TypeScript
25 lines
727 B
TypeScript
import { faker } from '@faker-js/faker';
|
|
|
|
export interface ProviderConfig {
|
|
id: string;
|
|
name: string;
|
|
baseUrl: string;
|
|
apiKey: string;
|
|
modelId: string;
|
|
}
|
|
|
|
export const createProviderConfig = (overrides: Partial<ProviderConfig> = {}): ProviderConfig => {
|
|
return {
|
|
id: faker.string.uuid(),
|
|
name: faker.company.name() + ' AI',
|
|
baseUrl: faker.internet.url(),
|
|
apiKey: 'sk-' + faker.string.alphanumeric(20),
|
|
modelId: faker.helpers.arrayElement(['gpt-4', 'claude-3', 'deepseek-chat']),
|
|
...overrides,
|
|
};
|
|
};
|
|
|
|
export const createProviderConfigs = (count: number): ProviderConfig[] => {
|
|
return Array.from({ length: count }, () => createProviderConfig());
|
|
};
|