You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try add
"temperature": 0.7,
"max_new_tokens": 2000
into your -d
it should work
Aries-ckt
changed the title
[Bug] [chatdata] /api/v2/chat/completions调用接口"err_msg": "float() argument must be a string or a real number, not 'NoneType'"
[Bug] [chatdata] /api/v2/chat/completions"err_msg": "float() argument must be a string or a real number, not 'NoneType'"
Jan 23, 2025
Search before asking
Operating system information
Linux
Python version information
DB-GPT version
main
Related scenes
Installation Information
Installation From Source
Docker Installation
Docker Compose Installation
Cluster Installation
AutoDL Image
Other
Device information
GPU:4
GPU Memory:24G
Models information
LLM: chatglm4-9b
embedding: m3e
What happened
call
curl -X POST "http://localhost:5670/api/v2/chat/completions"
-H "Authorization: Bearer dbgpt"
-H "accept: application/json"
-H "Content-Type: application/json"
-d "{"messages":"G720250113收单量多少","model":"proxyllm", "chat_mode": "chat_data", "chat_param": "pcs_data_collection_g7","stream":"false"}"
报错返回:
{
"success": false,
"err_code": "E0003",
"err_msg": "float() argument must be a string or a real number, not 'NoneType'",
"data": null
}
What you expected to happen
正常调用
How to reproduce
正常调用
Additional context
No response
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: