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] [Module Name] 启用了接口API KEY之后,数据库管理和工作流配置界面报错 #2449

Open
1 of 15 tasks
bxfxf opened this issue Mar 12, 2025 · 5 comments
Open
1 of 15 tasks
Labels
bug Something isn't working Waiting for reply

Comments

@bxfxf
Copy link

bxfxf commented Mar 12, 2025

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

CPU

Models information

deepseek

What happened

配置文件启用了接口API KEY之后,数据库管理和工作流配置界面报错

{'error': {'message': '', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}

What you expected to happen

不要报错

How to reproduce

配置文件启用了接口API KEY之后,数据库管理和工作流配置界面报错

Additional context

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@bxfxf bxfxf added bug Something isn't working Waiting for reply labels Mar 12, 2025
@su1234121
Copy link

Please remove your api_keys or set empty to api_keys in config file.
have a try like this

[system]
language = "${env:DBGPT_LANG:-zh}"
api_keys = []

@531128151
Copy link

@su1234121 请问你回复的这个[system]相关的配置是在哪个文件配置的,烦请告知下,感谢

@su1234121
Copy link

在你uv启动命令后的那个配置文件的头上

@bxfxf
Copy link
Author

bxfxf commented Mar 14, 2025

Please remove your api_keys or set empty to api_keys in config file. have a try like this

[system]
language = "${env:DBGPT_LANG:-zh}"
api_keys = []

就是要设置apikey哦,因为调接口要用,为了安全

@su1234121
Copy link

#2430 可以看这里,应该是版本更新还没修复,给的临时处理办法是这样的,APIkey可以填到下面去

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