Files
zhenxun_bot/zhenxun/services/ai/llm/__init__.py
T

49 lines
888 B
Python
Raw Normal View History

"""
LLM 服务模块 - 公共 API 入口
提供统一的 AI 服务调用接口、核心数据契约和配置工具。
"""
from zhenxun.services.ai.core.exceptions import LLMException
from zhenxun.services.ai.core.messages import (
AudioResponse,
ChatResponse,
LLMContentPart,
LLMMessage,
)
from zhenxun.services.ai.core.options import (
TTSConfig,
)
from .api import (
chat,
create_image,
create_speech,
embed,
generate,
generate_structured,
rerank,
)
from .builder import (
IntentBuilder,
)
from .manager import get_default_model
__all__ = [
"AudioResponse",
"ChatResponse",
"IntentBuilder",
"LLMContentPart",
"LLMException",
"LLMMessage",
"TTSConfig",
"chat",
"create_image",
"create_speech",
"embed",
"generate",
"generate_structured",
"get_default_model",
"rerank",
]