converting to pydantic-settings

This commit is contained in:
Richie committed 2026-06-14 21:29:45 -04:00
1 parent a5d7c3be4f
commit 68b3a38b81
10 files changed
+111 -110

No files matched your search

+1 -2
View File
@@ -3,7 +3,6 @@
from __future__ import annotations
import logging
from dataclasses import replace
from datetime import UTC, datetime
from os import environ
from pathlib import Path
@@ -528,7 +527,7 @@ def test_chat_api_key_falls_back_to_ollama_api_key(monkeypatch) -> None:
def test_answer_query_does_not_call_model_when_disabled() -> None:
config = replace(load_config(), answer_enabled=False)
config = load_config().model_copy(update={"answer_enabled": False})
result = SearchResult(chunk_id=1, text="source text", source_title="Book")
answer = answer_query("question", [result], config)