mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:40:44 +00:00
fix(openai): default realtime voice to gpt-realtime-1.5
This commit is contained in:
@@ -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` |
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user