fix: use explicit LLM user agent config

This commit is contained in:
jxxghp
2026-05-26 08:24:58 +08:00
parent b65c8dcfe0
commit 821bd3decd
4 changed files with 5 additions and 7 deletions

View File

@@ -146,7 +146,7 @@ class LlmTestEndpointTest(unittest.TestCase):
), patch.object(
system_endpoint.settings, "LLM_BASE_URL_PRESET", "deepseek-default"
), patch.object(
system_endpoint.settings, "LLM_USER_AGENT", "MoviePilot-Test/1.0", create=True
system_endpoint.settings, "LLM_USER_AGENT", "MoviePilot-Test/1.0"
), patch.object(
system_endpoint.LLMHelper,
"test_current_settings",