fix : response timeout

This commit is contained in:
martin legrand
2025-03-29 14:23:53 +01:00
parent 5c9ada9468
commit 90894f806a
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ class Provider:
requests.post(route_gen, json={"messages": history})
is_complete = False
while not is_complete:
response = requests.get(f"http://{self.server_ip}/get_updated_sentence")
response = requests.get(f"http://{self.server_ip}/get_complete_sentence")
if "error" in response.json():
pretty_print(response.json()["error"], color="failure")
break