This commit is contained in:
decolua
2026-03-30 12:21:24 +07:00
parent abbf8ec86f
commit e6299eef56
6 changed files with 241 additions and 5 deletions

View File

@@ -59,9 +59,11 @@ export function openaiToAntigravityResponse(chunk, state) {
const accum = state._toolCallAccum[idx];
let args = {};
try { args = JSON.parse(accum.arguments); } catch { /* empty */ }
// Restore original tool name if it was prefixed during cloaking
const originalName = state.toolNameMap?.get(accum.name) || accum.name;
parts.push({
functionCall: {
name: accum.name,
name: originalName,
args
}
});