fix(openai): default realtime voice to gpt-realtime-1.5

This commit is contained in:
Peter Steinberger
2026-04-23 19:39:18 +01:00
parent 42d1ff8433
commit e9405318b4
3 changed files with 4 additions and 4 deletions

View File

@@ -379,7 +379,7 @@ Legacy `plugins.entries.openai.config.personality` is still read as a compatibil
| Setting | Config path | Default |
|---------|------------|---------|
| Model | `plugins.entries.voice-call.config.realtime.providers.openai.model` | `gpt-realtime` |
| Model | `plugins.entries.voice-call.config.realtime.providers.openai.model` | `gpt-realtime-1.5` |
| Voice | `...openai.voice` | `alloy` |
| Temperature | `...openai.temperature` | `0.8` |
| VAD threshold | `...openai.vadThreshold` | `0.5` |

View File

@@ -9,7 +9,7 @@ describe("buildOpenAIRealtimeVoiceProvider", () => {
rawConfig: {
providers: {
openai: {
model: "gpt-realtime",
model: "gpt-realtime-1.5",
voice: "verse",
temperature: 0.6,
silenceDurationMs: 850,
@@ -20,7 +20,7 @@ describe("buildOpenAIRealtimeVoiceProvider", () => {
});
expect(resolved).toEqual({
model: "gpt-realtime",
model: "gpt-realtime-1.5",
voice: "verse",
temperature: 0.6,
silenceDurationMs: 850,

View File

@@ -117,7 +117,7 @@ function base64ToBuffer(b64: string): Buffer {
}
class OpenAIRealtimeVoiceBridge implements RealtimeVoiceBridge {
private static readonly DEFAULT_MODEL = "gpt-realtime";
private static readonly DEFAULT_MODEL = "gpt-realtime-1.5";
private static readonly MAX_RECONNECT_ATTEMPTS = 5;
private static readonly BASE_RECONNECT_DELAY_MS = 1000;
private static readonly CONNECT_TIMEOUT_MS = 10_000;