The error occurred after adding the `loss` field according to the manual.(按照手册添加loss字段后报错)
Data:
{
"messages": [
{"role": "user", "content": "xxx"},
{"role": "assistant", "content": "
Error: TypeError: Couldn't cast array of type [rank0]: struct<role: string, content: string, loss: bool> [rank0]: to [rank0]: {'role': Value(dtype='string', id=None), 'content': Value(dtype='string', id=None)}
swift version: 3.9.2
Data: { "messages": [ {"role": "user", "content": "xxx"}, {"role": "assistant", "content": "\n\n\n\nxxx", "loss": false} ], "channel": xxx }
Error: TypeError: Couldn't cast array of type [rank0]: struct<role: string, content: string, loss: bool> [rank0]: to [rank0]: {'role': Value(dtype='string', id=None), 'content': Value(dtype='string', id=None)}
swift version: 3.9.2
先去掉channel字段试试