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]: the agent cannot run and reports an error #4326

Open
1 task done
liuman632 opened this issue Jan 2, 2025 · 1 comment
Open
1 task done

[Bug]: the agent cannot run and reports an error #4326

liuman632 opened this issue Jan 2, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@liuman632
Copy link

Is there an existing issue for the same bug?

  • I have checked the existing issues.

RAGFlow workspace code commit ID

RAGFlow image version

Other environment information

No response

Actual behavior

Deploying the latest code for testing has encountered a new issue where the agent cannot run and reports an error
image

Expected behavior

No response

Steps to reproduce

新增agent模版DB Assistant,配置完后点击运行报错

Traceback (most recent call last):
  File "/home/man_test/ragflow/api/apps/canvas_app.py", line 199, in reset
    canvas = Canvas(json.dumps(user_canvas.dsl), current_user.id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<@beartype(agent.canvas.Canvas.__init__) at 0x7f3b4e826a20>", line 31, in __init__
  File "/home/man_test/ragflow/agent/canvas.py", line 101, in __init__
    self.load()
  File "/home/man_test/ragflow/agent/canvas.py", line 116, in load
    param.check()
  File "/home/man_test/ragflow/agent/component/exesql.py", line 42, in check
    super().check()
  File "/home/man_test/ragflow/agent/component/generate.py", line 50, in check
    self.check_empty(self.llm_id, "[Generate] LLM")
  File "/home/man_test/ragflow/agent/component/base.py", line 249, in check_empty
    raise ValueError(
ValueError: [Generate] LLM does not support empty value.

Additional information

但是新增agent模版Text To SQL,可以正常点击运行
d631b91735a4124b97faf31bacd95d9

@liuman632 liuman632 added the bug Something isn't working label Jan 2, 2025
@KevinHuSh
Copy link
Collaborator

We changed a bit of component ExeSQL. Delete the older one. Drag a new one.

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

No branches or pull requests

2 participants