Skip to content

cannot concat ToolCalls with different tool id: 'call_357e63aa8d8643be8e6f8f0f' call_ab19881a9bc94938ab215902' #927

@czasg

Description

@czasg

问题:模型返回两次工具调用,然后就异常了。

tool_calls	{"role":"assistant","content":"","tool_calls":[{"index":0,"id":"call_a22ee75a08a943159beea799","type":"function","function":{"name":"ls","arguments":"{\"path\":\"./memory\"}"}}]}	
tool_calls	{"role":"assistant","content":"","tool_calls":[{"index":0,"id":"call_067d720493914ff392e709de","type":"function","function":{"name":"user_completed_work","arguments":"{\"weeks_ago\":0}"}}]}
cannot concat ToolCalls with different tool id: 'call_357e63aa8d8643be8e6f8f0f' call_ab19881a9bc94938ab215902'

似乎是尝试把他们合并导致的问题。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions