We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce95cc7 commit 7d63d01Copy full SHA for 7d63d01
src/modules/taskyon/chat.ts
@@ -182,6 +182,7 @@ function accumulateChatCompletion(
182
// Accumulate tool calls
183
for (const tc of chunk.choices[choiceIdx]?.delta?.tool_calls || []) {
184
// initialize toolCalls if it doesn't exist
185
+ // TODO: prepare openai tool cools
186
const tcnew = toolCalls[tc.index] || {
187
id: '',
188
type: 'function',
@@ -329,7 +330,10 @@ export async function callLLM(
329
330
// Call the callback function to process the chunk
331
contentCallBack(jsonChunk);
332
} catch (err) {
- console.error('Failed to parse chunk:', jsonString, err);
333
+ throw {
334
+ message: `Failed to parse chunk; ${jsonString}`,
335
+ details: { err },
336
+ };
337
}
338
339
0 commit comments