change sizing slightly and add sentry
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user