eosphoros-ai / DB-GPT

AI Native Data App Development framework with AWEL(Agentic Workflow Expression Language) and Agents
http://docs.dbgpt.cn
MIT License
13.25k stars 1.76k forks source link

[Bug] [ChatDashboard] Error 'ChatChartEditContext' object has no attribute 'con_uid'. Did you mean: 'conv_uid'? #1966

Open fluentlymos opened 1 week ago

fluentlymos commented 1 week ago

Search before asking

Operating system information

Windows

Python version information

3.10

DB-GPT version

main

Related scenes

Installation Information

Device information

CPU,3060

Models information

LLM: WENXIN EMBEDDED: text2vec-large-chinese

What happened

I setup a database by sqlite3 and get the connect with dbgpt. 1725448510301 when i start to make the conversition. like: analysis the data. the gpt response me with a SQL however it isn't work. So i change the sql in editor and click the save button. I'm sure the sql i change works will in sqliteStudio. however, i get error in background: 1725448705539 i didn't change the source code and according to the error message it seams that there are two fileds with the similar name. please help to have a check, thanks.

What you expected to happen

the error message in backgournd shows: 'ChatChartEditContext' object has no attribute 'con_uid'. Did you mean: 'conv_uid'? and that means there are two fields with the similar name . and there is no response after all actions.

How to reproduce

  1. go to dashboard chat.
  2. analysis the data use your own database.
  3. try to let the gpt generate a SQL and make sure the sql can not excute.
  4. make change according to the SQL and make sure it is excutable.
  5. paste the sql from database to editor page and click the save button.
  6. then you will see the errro message in background.

Additional context

No response

Are you willing to submit PR?

fluentlymos commented 1 week ago

i made one more update for this issue since seems i find something related: in api_editor_v1: used :chart_edit_context.con_uid 1725537788447 however, the type: chart_edit_context:ChatChartEditContext didn't have the filed named con_uid but conv_uid instead. i try to change the con_uid to conv_uid in api_editor_v1, but have other error related to meta_db_history: 1725538002587 the context will be Nonetype since there is no message transfer but have message ids. not sure the logic here. is i made it updated and hope this can help you guys troubleshooting. I'm not a coding engineer, so i'm not familar with the system to raise a bug with the env. just let me know i you need more information.