Files
gaokao-volunteer-system/data/llm/__init__.py
Hermes Agent 8608f1e738
Some checks failed
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
chore: fix ruff F401 re-export + mypy type errors + smoke e2e path handling
- data/llm/__init__.py, tests/__init__.py: 改用显式 `X as X` re-export 满足 ruff F401
- data/llm/prompts.py: 移除未使用的 json import
- admin/routes/web_public.py: 修复 LLM 集成新增代码的 5 处 mypy 类型错误
  - escape() 参数显式 str() 转换
  - int() 参数显式 str() 转换避免 AnyStr 报错
  - risk_level 字面量类型注解
- scripts/score_range_fullchain_100_e2e.py: 修复 batch_json/csv 绝对路径导致 relative_to() 崩溃

验证: GAOKAO_SKIP_INSTALL=1 bash scripts/dev-verify.sh
=> 1330 passed, 3 skipped, coverage 90.44%, core 100%, all checks passed
2026-06-29 07:37:49 +08:00

23 lines
574 B
Python

"""LLM 集成模块。
支持 openai/dashscope/anthropic 三种供应商,通过统一的 OpenAI-compatible API 调用。
"""
from .client import LLMClient as LLMClient
from .client import LLMError as LLMError
from .client import LLMResponse as LLMResponse
from .prompts import (
build_audit_prompt as build_audit_prompt,
build_cwb_prompt as build_cwb_prompt,
build_full_plan_prompt as build_full_plan_prompt,
)
__all__ = [
"LLMClient",
"LLMResponse",
"LLMError",
"build_audit_prompt",
"build_cwb_prompt",
"build_full_plan_prompt",
]