Fix calendar filter, module triggers, API cleanup, consolidate get_current_admin, fix LLM schema
This commit is contained in:
@@ -115,14 +115,15 @@ test("DELETE 删除源", r.status_code == 200)
|
||||
# 7. LLM provider config
|
||||
print("\n=== 7. LLM多供应商 ===")
|
||||
sys.path.insert(0, str(root / "platform" / "backend"))
|
||||
from app.core.nvidia_client import PROVIDERS, _ACTIVE_PROVIDER, _get_provider_config
|
||||
test("默认供应商", _ACTIVE_PROVIDER == "opencode-go")
|
||||
test("opencode-go已配置", "opencode-go" in PROVIDERS)
|
||||
test("nvidia备用存在", "nvidia" in PROVIDERS)
|
||||
cfg = PROVIDERS["opencode-go"]
|
||||
test("opencode-go模型", cfg["model"] == "deepseek-v4-flash")
|
||||
test("opencode-go URL非空", bool(cfg["base_url"]))
|
||||
test("opencode-go Key非空", bool(cfg["api_key"]))
|
||||
from app.core.nvidia_client import _get_active_provider, _get_provider_config
|
||||
test("默认供应商", _get_active_provider() == "opencode-go")
|
||||
cfg = _get_provider_config("opencode-go")
|
||||
test("opencode-go已配置", cfg is not None)
|
||||
cfg_nv = _get_provider_config("nvidia")
|
||||
test("nvidia备用存在", cfg_nv is not None)
|
||||
test("opencode-go模型", cfg and cfg.get("model") == "deepseek-v4-flash")
|
||||
test("opencode-go URL非空", bool(cfg and cfg.get("base_url")))
|
||||
test("opencode-go Key非空", bool(cfg and cfg.get("api_key")))
|
||||
|
||||
# 8. Collector DB loading
|
||||
print("\n=== 8. 采集器DB加载 ===")
|
||||
|
||||
Reference in New Issue
Block a user