update
This commit is contained in:
@@ -59,7 +59,7 @@ async def test_cap_kein_retry(echt_modus, monkeypatch):
|
||||
async def cap(*a, **k):
|
||||
zaehler["n"] += 1
|
||||
return llm.ApiErgebnis(1, err="leere Antwort (stop=max_tokens)",
|
||||
tokens={"input": 10, "output": 5})
|
||||
cap=True, tokens={"input": 10, "output": 5})
|
||||
monkeypatch.setattr(llm, "_api", cap)
|
||||
assert await _call(run_id) is None
|
||||
assert zaehler["n"] == 1 # deterministisch — kein Neuversuch
|
||||
|
||||
Reference in New Issue
Block a user