Spaces:
Running
Running
File size: 981 Bytes
261c237 e99df76 261c237 2e7b8ca 2415446 8e438ab 2415446 8e438ab 2415446 2e7b8ca | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | from __future__ import annotations
"""Application-owned model metadata."""
from dataclasses import dataclass, field
from free_claude_code.core.model_capabilities import ModelInputModality
from free_claude_code.core.reasoning import ReasoningCapability
@dataclass(frozen=True, slots=True)
class ProviderModelInfo:
"""Provider model metadata used to shape the application model catalog."""
model_id: str
supports_thinking: bool | None = None
input_modalities: frozenset[ModelInputModality] | None = None
context_window_tokens: int | None = None
max_output_tokens: int | None = None
reasoning_capability: ReasoningCapability = ReasoningCapability.UNKNOWN
@dataclass(frozen=True, slots=True)
class ProviderModelRefreshResult:
"""Per-provider outcome of one model-catalog refresh."""
refreshed_provider_ids: tuple[str, ...] = ()
failed_provider_ids: tuple[str, ...] = ()
failure_messages: dict[str, str] = field(default_factory=dict)
|