Skip to content

Commit 4f462e9

Browse files
authored
fix: 修复 LLM_MAX_TOKENS 环境变量不生效的问题 (#89)
1 parent 54d9b1d commit 4f462e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
LLM_BASE_URL = os.getenv("LLM_BASE_URL", "https://ark.cn-beijing.volces.com/api/v3")
66
LLM_MODEL_ID = os.getenv("MODEL_ID")
77
LLM_API_KEY = os.getenv("ARK_API_KEY") or os.getenv("LLM_API_KEY")
8-
LLM_MAX_TOKENS = int(os.getenv("", 8192))
8+
LLM_MAX_TOKENS = int(os.getenv("LLM_MAX_TOKENS", 8192))
99
TOS_ACCESS_KEY = os.getenv("TOS_ACCESS_KEY")
1010
TOS_SECRET_KEY = os.getenv("TOS_SECRET_KEY")
1111
TOS_ENDPOINT = os.getenv("TOS_ENDPOINT")

0 commit comments

Comments
 (0)