mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-09 16:49:01 +01:00
Support MistralAI streaming tool calls
This commit is contained in:
parent
447a7fba68
commit
01f03dbf50
@ -278,9 +278,9 @@ export class ToolManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const toolCallDelta of toolCallDeltas) {
|
for (const toolCallDelta of toolCallDeltas) {
|
||||||
const toolCallIndex = (typeof toolCallDelta?.index === 'number') ? toolCallDelta.index : null;
|
const toolCallIndex = (typeof toolCallDelta?.index === 'number') ? toolCallDelta.index : toolCallDeltas.indexOf(toolCallDelta);
|
||||||
|
|
||||||
if (toolCallIndex === null) {
|
if (isNaN(toolCallIndex) || toolCallIndex < 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user