mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
* ✨ feat(llm): 实现LLM服务模块,支持多提供商统一接口和高级功能 * 🎨 Ruff * ✨ Config配置类支持BaseModel存储 * 🎨 代码格式化 * 🎨 代码格式化 * 🎨 格式化代码 * ✨ feat(llm): 添加 AI 对话历史管理 * ✨ feat(llmConfig): 引入 LLM 配置模型及管理功能 * 🎨 Ruff --------- Co-authored-by: fccckaug <xxxmio123123@gmail.com> Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com> Co-authored-by: HibiKier <775757368@qq.com> Co-authored-by: fccckaug <xxxmcsmiomio3@gmail.com> Co-authored-by: webjoin111 <455457521@qq.com>
36 lines
763 B
Python
36 lines
763 B
Python
"""
|
|
LLM 配置模块
|
|
|
|
提供生成配置、预设配置和配置验证功能。
|
|
"""
|
|
|
|
from .generation import (
|
|
LLMGenerationConfig,
|
|
ModelConfigOverride,
|
|
apply_api_specific_mappings,
|
|
create_generation_config_from_kwargs,
|
|
validate_override_params,
|
|
)
|
|
from .presets import CommonOverrides
|
|
from .providers import (
|
|
LLMConfig,
|
|
get_llm_config,
|
|
register_llm_configs,
|
|
set_default_model,
|
|
validate_llm_config,
|
|
)
|
|
|
|
__all__ = [
|
|
"CommonOverrides",
|
|
"LLMConfig",
|
|
"LLMGenerationConfig",
|
|
"ModelConfigOverride",
|
|
"apply_api_specific_mappings",
|
|
"create_generation_config_from_kwargs",
|
|
"get_llm_config",
|
|
"register_llm_configs",
|
|
"set_default_model",
|
|
"validate_llm_config",
|
|
"validate_override_params",
|
|
]
|