mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-22 20:01:46 +00:00
deps(tongyi): fix tongyi dependencies and add tongyi proxy config (#2467)
# Description deps(tongyi): fix tongyi dependencies and add tongyi proxy config # How Has This Been Tested? ```bash uv sync --all-packages --frozen --extra "base" --extra "proxy_tongyi" --extra "rag" --extra "storage_chromadb" --extra "dbgpts" ``` ```bash uv run python packages/dbgpt-app/src/dbgpt_app/dbgpt_server.py --config .\configs\dbgpt-proxy-tongyi.toml ```
This commit is contained in:
commit
0d48f37ed9
33
configs/dbgpt-proxy-tongyi.toml
Normal file
33
configs/dbgpt-proxy-tongyi.toml
Normal file
@ -0,0 +1,33 @@
|
||||
[system]
|
||||
# Load language from environment variable(It is set by the hook)
|
||||
language = "${env:DBGPT_LANG:-en}"
|
||||
api_keys = []
|
||||
encrypt_key = "your_secret_key"
|
||||
|
||||
# Server Configurations
|
||||
[service.web]
|
||||
host = "0.0.0.0"
|
||||
port = 5670
|
||||
|
||||
[service.web.database]
|
||||
type = "sqlite"
|
||||
path = "pilot/meta_data/dbgpt.db"
|
||||
|
||||
[rag.storage]
|
||||
[rag.storage.vector]
|
||||
type = "Chroma"
|
||||
persist_path = "pilot/data"
|
||||
|
||||
# Model Configurations
|
||||
[models]
|
||||
[[models.llms]]
|
||||
name = "qwen-plus"
|
||||
provider = "${env:LLM_MODEL_PROVIDER:proxy/tongyi}"
|
||||
api_base = "https://dashscope.aliyuncs.com/compatible-mode/v1"
|
||||
api_key = "${env:DASHSCOPE_API_KEY}"
|
||||
|
||||
[[models.embeddings]]
|
||||
name = "text-embedding-v3"
|
||||
provider = "${env:EMBEDDING_MODEL_PROVIDER:proxy/tongyi}"
|
||||
api_url = "https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings"
|
||||
api_key = "${env:DASHSCOPE_API_KEY}"
|
@ -121,7 +121,12 @@ llama_cpp_server = [
|
||||
]
|
||||
proxy_ollama = ["ollama"]
|
||||
proxy_zhipuai = ["zhipuai>=2.1.5"]
|
||||
proxy_tongyi = ["openai"] # tongyi supported by openai package
|
||||
proxy_tongyi = [
|
||||
# tongyi supported by openai package
|
||||
"openai",
|
||||
# For tongyi proxy embedding model
|
||||
"dashscope",
|
||||
]
|
||||
proxy_qianfan = ["qianfan"]
|
||||
proxy_openai = [
|
||||
"openai>=1.59.6",
|
||||
|
@ -74,10 +74,6 @@ storage_chromadb = [
|
||||
]
|
||||
storage_elasticsearch = ["elasticsearch"]
|
||||
storage_obvector = ["pyobvector"]
|
||||
proxy_tongyi = [
|
||||
# For tongyi proxy embedding model
|
||||
"dashscope"
|
||||
]
|
||||
|
||||
[tool.uv]
|
||||
managed = true
|
||||
|
2
uv.lock
2
uv.lock
@ -10044,4 +10044,4 @@ wheels = [
|
||||
{ url = "https://pypi.tuna.tsinghua.edu.cn/packages/02/90/2633473864f67a15526324b007a9f96c96f56d5f32ef2a56cc12f9548723/zstandard-0.23.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:fa6ce8b52c5987b3e34d5674b0ab529a4602b632ebab0a93b07bfb4dfc8f8a33", size = 5191299 },
|
||||
{ url = "https://pypi.tuna.tsinghua.edu.cn/packages/b0/4c/315ca5c32da7e2dc3455f3b2caee5c8c2246074a61aac6ec3378a97b7136/zstandard-0.23.0-cp313-cp313-win32.whl", hash = "sha256:a9b07268d0c3ca5c170a385a0ab9fb7fdd9f5fd866be004c4ea39e44edce47dd", size = 430862 },
|
||||
{ url = "https://pypi.tuna.tsinghua.edu.cn/packages/a2/bf/c6aaba098e2d04781e8f4f7c0ba3c7aa73d00e4c436bcc0cf059a66691d1/zstandard-0.23.0-cp313-cp313-win_amd64.whl", hash = "sha256:f3513916e8c645d0610815c257cbfd3242adfd5c4cfa78be514e5a3ebb42a41b", size = 495578 },
|
||||
]
|
||||
]
|
Loading…
Reference in New Issue
Block a user