add llm key config

This commit is contained in:
2026-01-05 23:07:09 +08:00
parent d5a50e7f2d
commit b1d2c83cb5

View File

@@ -143,6 +143,18 @@ class KeyConfig(InstantiateConfig):
logger.info("ALI_API_KEY loaded from environ")
@dataclass
class LLMKeyConfig(KeyConfig):
llm_name: str = "qwen-plus"
"""name of llm"""
llm_provider:str = "openai"
"""provider of the llm"""
base_url:str = "https://dashscope.aliyuncs.com/compatible-mode/v1"
"""base url; could be used to overwrite the baseurl in llm provider"""
@dataclass
class ToolConfig(InstantiateConfig):
use_tool:bool = True