mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 04:59:26 +00:00
17 lines
393 B
TypeScript
17 lines
393 B
TypeScript
import { z } from 'zod'
|
|
|
|
export enum AiProvider {
|
|
OpenAi = 'openai',
|
|
Google = 'google',
|
|
Anthropic = 'anthropic',
|
|
ElevenLabs = 'elevenlabs',
|
|
}
|
|
|
|
export const aiProviderSettingsSchema = z.object({
|
|
apiKey: z.string().optional(),
|
|
baseUrl: z.string().optional(),
|
|
chatModels: z.array(z.string()).optional(),
|
|
})
|
|
|
|
export type AiProviderSettings = z.infer<typeof aiProviderSettingsSchema>
|