mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-28 23:50:03 +08:00
49 lines
888 B
Python
49 lines
888 B
Python
"""
|
|||
|
|
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",
|
||
|
|
]
|