fix: T2 live — camelCase setup frame + logs enrichis — 124/124 tests
This commit is contained in:
parent
16617b5c54
commit
7479ac5a05
4 changed files with 14 additions and 7 deletions
|
|
@ -54,11 +54,11 @@ function buildSetupFrame(): string {
|
|||
return JSON.stringify({
|
||||
setup: {
|
||||
model: GEMINI_LIVE_MODEL,
|
||||
system_instruction: {
|
||||
systemInstruction: {
|
||||
parts: [{ text: T2_SYSTEM_PROMPT }],
|
||||
},
|
||||
generation_config: {
|
||||
response_modalities: ['AUDIO'],
|
||||
generationConfig: {
|
||||
responseModalities: ['AUDIO'],
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
@ -119,7 +119,12 @@ export function openGeminiLiveSession(
|
|||
})
|
||||
|
||||
geminiWs.on('message', (data) => {
|
||||
console.log('[T2] Gemini message received, type:', typeof data)
|
||||
console.log(
|
||||
'[T2] Gemini message received, type:',
|
||||
typeof data,
|
||||
'content:',
|
||||
(data as { toString?: () => string })?.toString?.().slice(0, 500)
|
||||
)
|
||||
try {
|
||||
clientWs.send(data)
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue