fix: auto-clean orphan entities on purge; fix graph camera zoom; optimize system prompt

This commit is contained in:
root
2026-04-28 16:27:49 +08:00
parent aefaea7b90
commit ad382602f2
32 changed files with 1033 additions and 1299 deletions

View File

@ -157,7 +157,7 @@ class TestBackendClientAPI:
client = BackendClient(server)
result = client.update_settings(
api_config={"api_key": "new-key", "base_url": "https://api.deepseek.com", "model": "deepseek-chat"},
api_config={"api_key": "new-key", "base_url": "https://api.deepseek.com", "model": "deepseek-v4-flash"},
tool_limits={"persona_update_max": 2}
)
assert result.get("success") is True

View File

@ -40,7 +40,7 @@ class TestAppConfig:
from ui.models.config import AppConfig
config = AppConfig()
assert config.api_key == ""
assert config.model == "deepseek-chat"
assert config.model == "deepseek-v4-flash"
assert config.base_url == "https://api.deepseek.com"
def test_config_from_env(self):
@ -185,7 +185,7 @@ class TestUIWithBackendClient:
assert status.get("success") is True
result = client.update_settings(
api_config={"api_key": "sk-test", "base_url": "https://api.deepseek.com", "model": "deepseek-chat"},
api_config={"api_key": "sk-test", "base_url": "https://api.deepseek.com", "model": "deepseek-v4-flash"},
tool_limits={"persona_update_max": 1}
)
assert result.get("success") is True