Skip to content

There is missing an exception when the model server return the bad function calling msg #1999

@Zim-Inn

Description

@Zim-Inn

Description

I configure my custom provider and chat with them.
When I ask him to wirte sth to the file system, it don't work.
I query the db and find the reason:

user,"[{""type"":""text"",""data"":{""text"":""请把刚刚的总结写到根目录下的一个新文件中 标题自拟""}},{""type"":""finish"",""data"":{""reason"":""stop"",""time"":0}}]","",1769504668,1769504668,,,0
assistant,"[{""type"":""text"",""data"":{""text"":""[write]""}},{""type"":""finish"",""data"":{""reason"":""end_turn"",""time"":1769504669}}]",qwen-coder,1769504668,1769504669,1769504669,aiGateWay-beta,0
user,"[{""type"":""text"",""data"":{""text"":""你写入的文件呢?""}},{""type"":""finish"",""data"":{""reason"":""stop"",""time"":0}}]","",1769504732,1769504732,,,0
assistant,"[{""type"":""text"",""data"":{""text"":""[ls]""}},{""type"":""finish"",""data"":{""reason"":""end_turn"",""time"":1769504733}}]",qwen-coder,1769504732,1769504733,1769504733,aiGateWay-beta,0

meanwhile, i think the client should throw an exception when it received nonsense [write] response.

BTW, it didnt' show the ls result in the app, is it a normal behaviour?

Version

v0.35.0

Environment

win11 / windows terminal / pwsh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions