Improve AI daily report operations and dedupe observability

This commit is contained in:
Ubuntu
2026-06-10 21:55:29 +08:00
parent b46cef2c7b
commit 2159ee733b
23 changed files with 761 additions and 57 deletions

View File

@@ -28,8 +28,9 @@ class EnvConfigTests(unittest.TestCase):
)
def test_resolve_llm_config_reports_missing_fields(self):
with self.assertRaisesRegex(ValueError, "missing_llm_config: LLM_BASE_URL,LLM_MODEL"):
resolve_llm_config({"LLM_API_KEY": "key"})
with TemporaryDirectory() as temp_dir:
with self.assertRaisesRegex(ValueError, "missing_llm_config: LLM_BASE_URL,LLM_MODEL"):
resolve_llm_config({"LLM_API_KEY": "key"}, hermes_dir=Path(temp_dir))
def test_resolve_llm_config_follows_hermes_provider_config(self):
with TemporaryDirectory() as temp_dir: