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());
};
