diff --git a/EXAMPLES.md b/EXAMPLES.md index a1e4526..a2dd234 100644 --- a/EXAMPLES.md +++ b/EXAMPLES.md @@ -114,7 +114,7 @@ response = client.prompt( client = create_ai_client( 'scicore', api_key='your-scicore-key', - base_url='https://llm-api-h200.ceda.unibas.ch/litellm/v1' + base_url='https://llm-api-h200.ceda.unibas.ch/v1' ) response = client.prompt('deepseek/deepseek-chat', 'Hello!') diff --git a/README.md b/README.md index 4112a4f..71dba19 100644 --- a/README.md +++ b/README.md @@ -303,7 +303,7 @@ response, _ = client.prompt('anthropic/claude-3-opus', 'Hello!') client = create_ai_client( 'scicore', api_key='your-key', - base_url='https://llm-api-h200.ceda.unibas.ch/litellm/v1' + base_url='https://llm-api-h200.ceda.unibas.ch/v1' ) response, _ = client.prompt('deepseek/deepseek-chat', 'Hello!') diff --git a/ai_client/__init__.py b/ai_client/__init__.py index 57eb569..c0f17bd 100644 --- a/ai_client/__init__.py +++ b/ai_client/__init__.py @@ -47,7 +47,7 @@ APIError, ) -__version__ = "0.4.3" +__version__ = "0.4.4" __all__ = [ # Core classes diff --git a/ai_client/base_client.py b/ai_client/base_client.py index 0c6af35..19a880f 100644 --- a/ai_client/base_client.py +++ b/ai_client/base_client.py @@ -770,7 +770,7 @@ def create_ai_client( if provider == "openrouter" and base_url is None: base_url = "https://openrouter.ai/api/v1" elif provider == "scicore" and base_url is None: - base_url = "https://llm-api-h200.ceda.unibas.ch/litellm" + base_url = "https://llm-api-h200.ceda.unibas.ch/v1" client_class = provider_map[provider] client = client_class( diff --git a/pyproject.toml b/pyproject.toml index 5fba2dd..db43e72 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "generic-llm-api-client" -version = "0.4.3" +version = "0.4.4" description = "A unified, provider-agnostic Python client for multiple LLM APIs" readme = "README.md" requires-python = ">=3.10" diff --git a/tests/test_base_client.py b/tests/test_base_client.py index bb18cca..2987e42 100644 --- a/tests/test_base_client.py +++ b/tests/test_base_client.py @@ -75,7 +75,7 @@ def test_create_scicore_client(self): client = create_ai_client( "scicore", api_key="test-key", - base_url="https://llm-api-h200.ceda.unibas.ch/litellm/v1", + base_url="https://llm-api-h200.ceda.unibas.ch/v1", ) assert isinstance(client, OpenAIClient)