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] Bug title error when use tongyi as proxy embedding #2503

Open
2 of 15 tasks
ZaneH1992 opened this issue Mar 21, 2025 · 1 comment
Open
2 of 15 tasks
Labels
bug Something isn't working Waiting for reply

Comments

@ZaneH1992
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

Device:CPU

Models information

Embedding Model:text-embedding-v2@proxy/tongyi

What happened

llm client class: <class 'dbgpt.model.proxy.llms.deepseek.DeepseekLLMClient'>
INFO: Uvicorn running on http://0.0.0.0:5670 (Press CTRL+C to quit)
2025-03-21 16:44:30 iZ2ze6ul4clspwa0f0qhhaZ dbgpt.util.api_utils[1996] WARNING No healthy urls found, selecting randomly
INFO: 127.0.0.1:35568 - "POST /api/controller/models HTTP/1.1" 200 OK
2025-03-21 16:44:30 iZ2ze6ul4clspwa0f0qhhaZ dbgpt.model.cluster.worker.embedding_worker[1996] INFO Load embeddings model: text-embedding-v2
2025-03-21 16:44:30 iZ2ze6ul4clspwa0f0qhhaZ dbgpt.model.cluster.worker.manager[1996] ERROR Error starting worker manager: model deepseek-reasoner@proxy/deepseek(192.168.1.194:5670) start successfully
;model text-embedding-v2@proxy/tongyi(192.168.1.194:5670) start failed, Traceback (most recent call last):
File "/home/DB-GPT/packages/dbgpt-ext/src/dbgpt_ext/rag/embeddings/tongyi.py", line 74, in init
import dashscope # type: ignore
^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'dashscope'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/DB-GPT/packages/dbgpt-core/src/dbgpt/model/cluster/worker/manager.py", line 631, in _start_worker
await self.run_blocking_func(
File "/home/DB-GPT/packages/dbgpt-core/src/dbgpt/model/cluster/worker/manager.py", line 146, in run_blocking_func
return await loop.run_in_executor(self.executor, func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/DB-GPT/packages/dbgpt-core/src/dbgpt/model/cluster/worker/embedding_worker.py", line 84, in start
self._embeddings_impl = self._adapter.load_from_params(self._model_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/DB-GPT/packages/dbgpt-core/src/dbgpt/model/adapter/base.py", line 829, in load_from_params
return model_adapter_cls.from_parameters(params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/DB-GPT/packages/dbgpt-ext/src/dbgpt_ext/rag/embeddings/tongyi.py", line 94, in from_parameters
return cls(
^^^^
File "/home/DB-GPT/packages/dbgpt-ext/src/dbgpt_ext/rag/embeddings/tongyi.py", line 76, in init
raise ValueError(
ValueError: Could not import python package: dashscope Please install dashscope by command `pip install dashscope

INFO: Shutting down
INFO: Waiting for application shutdown.

What you expected to happen

something wrong when read config.toml

How to reproduce

Image

Additional context

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@ZaneH1992 ZaneH1992 added bug Something isn't working Waiting for reply labels Mar 21, 2025
@yyhhyyyyyy
Copy link
Collaborator

Please use the following command to install the dependencies:

uv sync --all-packages --frozen --extra "base" --extra "proxy_tongyi" --extra "rag" --extra "storage_chromadb" --extra "dbgpts"

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

2 participants