change sizing slightly and add sentry

This commit is contained in:
Zoe
2026-02-12 17:32:51 -06:00
parent d29f95bacf
commit 32a4f7f95d
14 changed files with 519 additions and 156 deletions
+6
View File
@@ -669,6 +669,8 @@ async function generateResponse(
activeToolCalls.delete(token.toolCallId);
} break;
case 'tool-error': {
console.error('Tool error:', token);
let outputType: 'text' | 'json';
let outputValue: string;
@@ -733,6 +735,8 @@ async function generateResponse(
activeToolCalls.delete(token.toolCallId);
} break;
case 'error': {
console.error('Error:', token);
for (const activePart of activeParts.values()) {
await httpClient.update('message_parts', activePart.id, {
finished: true,
@@ -751,6 +755,8 @@ async function generateResponse(
status: 'failed',
error,
});
throw new Error(error);
} break;
case 'finish': {
let tps;