[V10.283] 收斂 Code Review Hermes fast scan prompt | code_review_pipeline_service.py
All checks were successful
CD Pipeline / deploy (push) Successful in 1m2s
All checks were successful
CD Pipeline / deploy (push) Successful in 1m2s
This commit is contained in:
@@ -231,9 +231,9 @@ def test_code_review_ollama_defaults_use_fast_local_model(monkeypatch):
|
||||
assert svc_mod.CODE_REVIEW_HERMES_SECONDARY_TIMEOUT == 25
|
||||
assert svc_mod.CODE_REVIEW_HERMES_FALLBACK_MODEL == "hermes3:latest"
|
||||
assert svc_mod.CODE_REVIEW_HERMES_FALLBACK_TIMEOUT == 20
|
||||
assert svc_mod.CODE_REVIEW_HERMES_NUM_PREDICT == 768
|
||||
assert svc_mod.CODE_REVIEW_HERMES_MAX_FILES == 3
|
||||
assert svc_mod.CODE_REVIEW_HERMES_MAX_CHARS == 2500
|
||||
assert svc_mod.CODE_REVIEW_HERMES_NUM_PREDICT == 384
|
||||
assert svc_mod.CODE_REVIEW_HERMES_MAX_FILES == 2
|
||||
assert svc_mod.CODE_REVIEW_HERMES_MAX_CHARS == 900
|
||||
|
||||
|
||||
def test_openclaw_uses_secondary_local_model_before_gemini(monkeypatch):
|
||||
@@ -323,7 +323,7 @@ def test_hermes_scan_uses_compact_prompt_and_short_timeout(monkeypatch):
|
||||
kwargs = fake_ollama.generate.call_args.kwargs
|
||||
assert kwargs["model"] == "qwen2.5-coder:7b"
|
||||
assert kwargs["timeout"] == 7
|
||||
assert kwargs["options"] == {"num_predict": 768}
|
||||
assert kwargs["options"] == {"num_predict": 384}
|
||||
prompt = kwargs["prompt"]
|
||||
assert "services/a.py" in prompt
|
||||
assert "services/b.py" in prompt
|
||||
|
||||
Reference in New Issue
Block a user