Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [chatdata] /api/v2/chat/completions调用接口"err_msg": "float() argument must be a string or a real number, not 'NoneType'" #2303

Open
3 of 15 tasks
Sloane9511 opened this issue Jan 14, 2025 · 2 comments
Labels
bug Something isn't working Waiting for reply

Comments

@Sloane9511
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

Operating system information

Linux

Python version information

=3.11

DB-GPT version

main

Related scenes

  • Chat Data
  • Chat Excel
  • Chat DB
  • Chat Knowledge
  • Model Management
  • Dashboard
  • Plugins

Installation Information

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
}
image

What you expected to happen

正常调用

How to reproduce

正常调用

Additional context

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@Sloane9511 Sloane9511 added bug Something isn't working Waiting for reply labels Jan 14, 2025
@Aries-ckt
Copy link
Collaborator

can you execute in dbgpt webserver?

@2u0ta0
Copy link

2u0ta0 commented Jan 17, 2025

try add
"temperature": 0.7,
"max_new_tokens": 2000
into your -d

it should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Waiting for reply
Projects
None yet
Development

No branches or pull requests

3 participants