Spaces:
Running
Running
Download tests/application/test_model_metadata.py from dherain24/claude-proxy: direct link, hf CLI and curl.
- Browser
- Download file 851 Bytes
-
https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/tests/application/test_model_metadata.py
- Command line
-
hf download hf://spaces/dherain24/claude-proxy/tests/application/test_model_metadata.py
-
curl -L -o test_model_metadata.py https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/tests/application/test_model_metadata.py
851 Bytes
| from dataclasses import replace | |
| from free_claude_code.application.model_metadata import ProviderModelInfo | |
| from free_claude_code.core.model_capabilities import ModelInputModality | |
| def test_provider_model_info_preserves_capabilities_when_identity_is_replaced() -> None: | |
| info = ProviderModelInfo( | |
| model_id="vendor/model", | |
| supports_thinking=True, | |
| input_modalities=frozenset({ModelInputModality.TEXT, ModelInputModality.IMAGE}), | |
| context_window_tokens=131072, | |
| max_output_tokens=8192, | |
| ) | |
| assert replace(info, model_id="provider/vendor/model") == ProviderModelInfo( | |
| model_id="provider/vendor/model", | |
| supports_thinking=True, | |
| input_modalities=frozenset({ModelInputModality.TEXT, ModelInputModality.IMAGE}), | |
| context_window_tokens=131072, | |
| max_output_tokens=8192, | |
| ) | |