Spaces:
Running
Running
sync: upstream 8dfff832 (v6.18.5) + custom addons (KeyRotator, 401/403 rotation, sol/terra/luna, ScannerTrap, health, Py3.12 compat)
2e7b8ca Download src/free_claude_code/application/model_metadata.py from dherain24/claude-proxy: direct link, hf CLI and curl.
- Browser
- Download file 981 Bytes
-
https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/src/free_claude_code/application/model_metadata.py
- Command line
-
hf download hf://spaces/dherain24/claude-proxy/src/free_claude_code/application/model_metadata.py
-
curl -L -o model_metadata.py https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/src/free_claude_code/application/model_metadata.py
981 Bytes
| 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 | |
| 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 | |
| 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) | |