APIPark icon indicating copy to clipboard operation
APIPark copied to clipboard

bug: messages中的content不支持数组格式

Open XiYanXian opened this issue 6 months ago • 0 comments

Current Behavior

在使用pycharm上的continue插件访问本地部署apipark的claude模型会报错 json: cannot unmarshal array into Go struct field Message.messages.content of type string 通过抓包发现continue请求的消息message格式中格式类似如下: "messages": [ { "content": ["Hello, who are you?"], //此处为array非string "role": "user" } ]

Expected Behavior

能否支持兼容一下此格式?

Error Logs

No response

Steps to Reproduce

No response

Environment

  • ApiPark version: 1.8-beta
  • Operating system (run uname -a): Linux chatgpt 5.4.0-200-generic #220-Ubuntu SMP Fri Sep 27 13:19:16 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

XiYanXian avatar Jul 10 '25 03:07 XiYanXian