Skip to content

Commit

Permalink
feat(model): Support yi proxy LLM (eosphoros-ai#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
fangyinc authored Mar 15, 2024
1 parent 6974329 commit 130ffb0
Show file tree
Hide file tree
Showing 144 changed files with 1,286 additions and 1,088 deletions.
5 changes: 5 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ TONGYI_PROXY_API_KEY={your-tongyi-sk}
#XUNFEI_SPARK_API_KEY={your_api_key}
#XUNFEI_SPARK_API_SECRET={your_api_secret}

## Yi Proxyllm, https://platform.lingyiwanwu.com/docs
#YI_MODEL_VERSION=yi-34b-chat-0205
#YI_API_BASE=https://api.lingyiwanwu.com/v1
#YI_API_KEY={your-yi-api-key}



#*******************************************************************#
Expand Down
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ignore =
E126
E203
E226
E231
E24
E704
W503
Expand Down
3 changes: 3 additions & 0 deletions .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ ignore_missing_imports = True

[mypy-pymilvus.*]
ignore_missing_imports = True

[mypy-cryptography.*]
ignore_missing_imports = True
11 changes: 11 additions & 0 deletions dbgpt/_private/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,17 @@ def __init__(self) -> None:
"GEMINI_MODEL_VERSION", "gemini-pro"
)

# Yi proxy
self.yi_proxy_api_key = os.getenv("YI_API_KEY")
if self.yi_proxy_api_key:
os.environ["yi_proxyllm_proxy_api_key"] = self.yi_proxy_api_key
os.environ["yi_proxyllm_proxyllm_backend"] = os.getenv(
"YI_MODEL_VERSION", "yi-34b-chat-0205"
)
os.environ["yi_proxyllm_proxy_api_base"] = os.getenv(
"YI_API_BASE", "https://api.lingyiwanwu.com/v1"
)

self.proxy_server_url = os.getenv("PROXY_SERVER_URL")

self.elevenlabs_api_key = os.getenv("ELEVENLABS_API_KEY")
Expand Down
2 changes: 1 addition & 1 deletion dbgpt/app/static/404.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dbgpt/app/static/404/index.html

Large diffs are not rendered by default.

This file was deleted.

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

27 changes: 27 additions & 0 deletions dbgpt/app/static/_next/static/chunks/1009-4b2af86bde623424.js

Large diffs are not rendered by default.

40 changes: 0 additions & 40 deletions dbgpt/app/static/_next/static/chunks/1193-0c6475e280185569.js

This file was deleted.

Loading

0 comments on commit 130ffb0

Please sign in to comment.