Configuration
nuxt.config.ts
gpt: {
apiKey: string;
protectAPI: boolean;
model?: string;
voice?: string;
}
| key | Type | Default | Description |
|---|---|---|---|
| apiKey | string (required) | Your openAI API-Key. Typically starts with sk-proj- | |
| protectAPI | boolean | true | Wether to use server middleware and tokens to protect ChatGPT Endpoints from external access. Read more |
| model | string | gpt-4o-mini | Model to use. Find a full list here |
| voice | string | alloy | Voice to use for .toSpeech(). Find a full list here |