Skip to content

Commit 8c9144a

Browse files
shreyas-lyzrclaude
andcommitted
fix: switch voice model to gpt-realtime-1.5 (supports image input)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a929b55 commit 8c9144a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gitclaw",
3-
"version": "1.1.3",
3+
"version": "1.1.5",
44
"description": "A universal git-native multimodal always learning AI Agent (TinyHuman)",
55
"author": "shreyaskapale",
66
"license": "MIT",

src/voice/openai-realtime.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class OpenAIRealtimeAdapter implements MultimodalAdapter {
2929
this.onMessage = opts.onMessage;
3030
this.toolHandler = opts.toolHandler;
3131

32-
const model = this.config.model || "gpt-4o-realtime-preview";
32+
const model = this.config.model || "gpt-realtime-1.5";
3333
const url = `wss://api.openai.com/v1/realtime?model=${model}`;
3434

3535
// Try direct WebSocket with headers first (native Node.js / real server)
@@ -51,6 +51,10 @@ export class OpenAIRealtimeAdapter implements MultimodalAdapter {
5151
}
5252

5353
// Fallback: get an ephemeral session token via REST (fetch headers work everywhere)
54+
const keyPreview = this.config.apiKey
55+
? `${this.config.apiKey.slice(0, 7)}...${this.config.apiKey.slice(-4)} (${this.config.apiKey.length} chars)`
56+
: "(empty)";
57+
console.log(dim(`[voice] API key: ${keyPreview}`));
5458
const sessionResp = await fetch("https://api.openai.com/v1/realtime/sessions", {
5559
method: "POST",
5660
headers: {

0 commit comments

Comments
 (0)