解决润色被截断的问题
This commit is contained in:
@@ -21,7 +21,7 @@ class AIService:
|
||||
self.api_base = os.getenv('AI_API_BASE') # 可选:自定义API端点
|
||||
self.custom_llm_provider = os.getenv('AI_CUSTOM_PROVIDER') # 可选:自定义端点的API格式(如 'openai')
|
||||
self.temperature = float(os.getenv('AI_TEMPERATURE', '0.7'))
|
||||
self.max_tokens = int(os.getenv('AI_MAX_TOKENS', '500'))
|
||||
self.max_tokens = int(os.getenv('AI_MAX_TOKENS', '2000')) # 提高默认值,避免中文返回被截断
|
||||
|
||||
# 设置环境变量供LiteLLM使用
|
||||
if self.api_key:
|
||||
|
||||
Reference in New Issue
Block a user