mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-22 07:01:07 +03:00
chore: fix typos in packages/components/nodes/sequentialagents/commonUtils.ts (#5419)
Fix typos in packages/components/nodes/sequentialagents/commonUtils.ts
This commit is contained in:
@@ -238,7 +238,7 @@ export function filterConversationHistory(
|
||||
export const restructureMessages = (llm: BaseChatModel, state: ISeqAgentsState) => {
|
||||
const messages: BaseMessage[] = []
|
||||
for (const message of state.messages as unknown as BaseMessage[]) {
|
||||
// Sometimes Anthropic can return a message with content types of array, ignore that EXECEPT when tool calls are present
|
||||
// Sometimes Anthropic can return a message with content types of array, ignore that EXCEPT when tool calls are present
|
||||
if ((message as any).tool_calls?.length && message.content !== '') {
|
||||
message.content = JSON.stringify(message.content)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user