Fix async send issues in LLMs

This commit is contained in:
Cyber MacGeddon 2025-03-18 23:58:29 +00:00
parent 1495666e65
commit 0bcd9ffa36
4 changed files with 6 additions and 6 deletions

View file

@ -169,7 +169,7 @@ class Processor(ConsumerProducer):
model=self.model
)
self.producer.send(r, properties={"id": id})
await self.send(r, properties={"id": id})
print("Done.", flush=True)
@ -202,7 +202,7 @@ class Processor(ConsumerProducer):
model=None,
)
self.producer.send(r, properties={"id": id})
await self.send(r, properties={"id": id})
self.consumer.acknowledge(msg)