mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-05-07 22:03:31 +08:00
- Move LLMHelper and related logic from app.helper.llm to app.agent.llm.helper - Update all imports to reference new LLMHelper location - Introduce app/agent/llm/__init__.py for internal LLM adapter exports - Add llm.py API router with endpoints for model listing, provider auth, and test calls - Remove legacy LLM endpoints from system.py - Update requirements for langchain-anthropic and anthropic - Refactor test_llm_helper_testcall.py for async LLMHelper usage and new import paths
20 lines
442 B
Python
20 lines
442 B
Python
"""Agent 内部使用的 LLM 适配层。"""
|
|
|
|
from app.agent.llm.helper import LLMHelper, LLMTestError, LLMTestTimeout
|
|
from app.agent.llm.provider import (
|
|
LLMProviderAuthError,
|
|
LLMProviderError,
|
|
LLMProviderManager,
|
|
render_auth_result_html,
|
|
)
|
|
|
|
__all__ = [
|
|
"LLMHelper",
|
|
"LLMProviderAuthError",
|
|
"LLMProviderError",
|
|
"LLMProviderManager",
|
|
"LLMTestError",
|
|
"LLMTestTimeout",
|
|
"render_auth_result_html",
|
|
]
|