Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions configs/dbgpt-proxy-tongyi.toml
Original file line number Diff line number Diff line change
@@ -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}"
7 changes: 6 additions & 1 deletion packages/dbgpt-core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 0 additions & 4 deletions packages/dbgpt-ext/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ storage_chromadb = [
]
storage_elasticsearch = ["elasticsearch"]
storage_obvector = ["pyobvector"]
proxy_tongyi = [
# For tongyi proxy embedding model
"dashscope"
]

[tool.uv]
managed = true
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.