Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

| Version | Supported |
|---------|-----------|
| 0.3.x | Yes |
| < 0.3 | No |
| 0.9.x | Yes |
| < 0.9 | No |

## Reporting a Vulnerability

Expand Down
6 changes: 5 additions & 1 deletion tests/test_labeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ def fake_call(prompt, *, backend, max_tokens=200):
return "{" + ", ".join(f'"{c}": "Cluster {c}"' for c in cids) + "}"

monkeypatch.setattr("graphify.llm._call_llm", fake_call)
labels = label_communities(G, communities, backend="gemini", batch_size=100)
# max_concurrency=1 keeps the batches sequential so `calls` records them in a
# deterministic order; the default concurrent path can complete them out of
# order (the ordering is asserted separately in
# test_label_communities_parallel_matches_sequential).
labels = label_communities(G, communities, backend="gemini", batch_size=100, max_concurrency=1)

# 250 communities / 100 per batch -> 3 batches (100, 100, 50)
assert calls == [100, 100, 50]
Expand Down
Loading