diff --git a/CHANGELOG.md b/CHANGELOG.md index 684928bb..7c0a0578 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). --> +## [UNRELEASED] + +### Bug fixes + +* `ChatGithub()` once again uses the appropriate `base_url` when generating reponses (problem introduced in v0.11.0). (#182) + ## [0.13.0] - 2025-09-10 ### New features diff --git a/chatlas/_provider_github.py b/chatlas/_provider_github.py index d282a176..becde768 100644 --- a/chatlas/_provider_github.py +++ b/chatlas/_provider_github.py @@ -141,7 +141,7 @@ def ChatGithub( class GitHubProvider(OpenAIProvider): def __init__(self, base_url: str, **kwargs): - super().__init__(**kwargs) + super().__init__(base_url=base_url, **kwargs) self._base_url = base_url def list_models(self) -> list[ModelInfo]: @@ -190,7 +190,7 @@ def list_models_gh_azure(base_url: str = "https://models.inference.ai.azure.com" for m in models: info: ModelInfo = { "id": m["name"], - "provider": m["publisher"] + "provider": m["publisher"], } res.append(info) diff --git a/pytest.ini b/pytest.ini index 7d6c1f30..b5fec6f4 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,3 @@ [pytest] asyncio_mode=strict -asyncio_default_fixture_loop_scope=fixture \ No newline at end of file +asyncio_default_fixture_loop_scope=function \ No newline at end of file