e4dcfc49aa
Tests / Import Check (Python 3.13) (push) Has been cancelled
Tests / Import Check (Python 3.14) (push) Has been cancelled
Tests / Python Tests (Python 3.11) (push) Has been cancelled
Tests / Python Tests (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.14) (push) Has been cancelled
Tests / Test Summary (push) Has been cancelled
Tests / Lint and Format (push) Has been cancelled
Tests / Web Node Tests (push) Has been cancelled
Tests / Import Check (Python 3.11) (push) Has been cancelled
Tests / Import Check (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.13) (push) Has been cancelled
11 lines
397 B
Python
11 lines
397 B
Python
from deeptutor.services.provider_registry import find_by_name, find_gateway
|
|
|
|
|
|
def test_nvidia_nim_gateway_detection_by_key_and_base() -> None:
|
|
spec = find_by_name("nvidia_nim")
|
|
|
|
assert spec is not None
|
|
assert spec.supports_stream_options is False
|
|
assert find_gateway(api_key="nvapi-test-key") == spec
|
|
assert find_gateway(api_base="https://integrate.api.nvidia.com/v1") == spec
|