mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-25 17:10:42 +00:00
clean vllm tonight
This commit is contained in:
parent
75a032bf3e
commit
fae87dcaaa
2 changed files with 1 additions and 6 deletions
|
|
@ -99,11 +99,7 @@ def get_batch(url: str = "http://localhost:8000"):
|
|||
Raises:
|
||||
RuntimeError: If trainer is not registered or other API error
|
||||
"""
|
||||
response = requests.get(
|
||||
f"{url}/batch",
|
||||
timeout=10,
|
||||
)
|
||||
data = response.json()
|
||||
data = requests.get(f"{url}/batch", timeout=10).json()
|
||||
|
||||
# Check if there was an error (trainer not registered)
|
||||
if data.get("status") == "error":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue