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 d676dc2 commit 5014a6aCopy full SHA for 5014a6a
src/intellichat/readers/OpenAIReader.ts
@@ -49,7 +49,7 @@ export default class OpenAIReader extends BaseReader implements IChatReader {
49
const toolCalls = respMsg.toolCalls[0];
50
return {
51
index: toolCalls.index || 0,
52
- args: toolCalls.function.arguments,
+ args: toolCalls.function?.arguments || '',
53
};
54
} catch (err) {
55
console.error('parseToolArgs', err);
0 commit comments