Bugfix for local LLMs with no API key supplied

This commit is contained in:
2026-05-04 11:22:49 -05:00
parent fac1629417
commit 434f812b98
2 changed files with 14 additions and 2 deletions

View File

@@ -223,7 +223,7 @@ def test_missing_api_key_is_allowed_for_nondefault_endpoint(monkeypatch):
),
)
assert openai_inits == [{"api_key": None, "base_url": "http://localhost:8000/v1", "timeout": 600}]
assert openai_inits == [{"api_key": "audita-no-key-required", "base_url": "http://localhost:8000/v1", "timeout": 600}]
assert create_calls == [
{
"model": "meta-llama/Llama-3.1-8B-Instruct",