perf: trying to improve perf

This commit is contained in:
martin legrand
2025-03-29 18:20:47 +01:00
parent e0eee90202
commit 557f7aa333
3 changed files with 3 additions and 11 deletions
+1 -1
View File
@@ -120,7 +120,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_complete_sentence")
response = requests.get(f"http://{self.server_ip}/get_updated_sentence")
if "error" in response.json():
pretty_print(response.json()["error"], color="failure")
break