LLM config
All checks were successful
Gitea Actions Demo / deploy (push) Successful in 29s

This commit is contained in:
2026-02-27 09:50:11 +08:00
parent 839cdbdbc7
commit 756f871b4e
3 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,7 @@
from typing import Optional, Dict
from dataclasses import dataclass
import os
from config.settings import settings
from config import settings
from openai import OpenAI
from utils import logger
@ -11,10 +11,10 @@ class LLMConfig:
"""LLM配置类"""
api_key: Optional[str] = None
base_url: str = "https://dashscope.aliyuncs.com/compatible-mode/v1"
model: str = "qwen3.5-plus"
model: str = settings.LLM_MODEL
enable_thinking: bool = True
temperature: float = 0.7
max_tokens: int = 4096
max_tokens: int = settings.LLM_MAX_TOKENS
class LLMThinkingEngine: