Files
life-echo/api/app/core/eval_judge_spec.py

19 lines
526 B
Python
Raw Normal View History

"""评测台评审 LLM 装配契约(与 OpenAI/Chat Completions 兼容的供应商解耦于适配器层)。"""
from __future__ import annotations
from dataclasses import dataclass
from typing import Any, Literal
EvalJudgeProvider = Literal["zhipu", "deepseek"]
@dataclass(slots=True, frozen=True)
class EvalJudgeLlmSpec:
"""智谱 / DeepSeek 等:装配结果供 dependencies 与评测服务使用。"""
llm: Any | None
provider: EvalJudgeProvider
resolved_model: str
context_window_tokens: int