Fix LLM output reporting (#31)

* Fix LLM output reporting

* Bump version
This commit is contained in:
cybermaggedon 2024-08-23 13:44:42 +01:00 committed by GitHub
parent 1e92b2048a
commit 380bddeb90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 216 additions and 216 deletions

View file

@ -122,7 +122,7 @@ class Processor(ConsumerProducer):
resp = response.replace("```json", "")
resp = response.replace("```", "")
r = TextCompletionResponse(response=resp)
r = TextCompletionResponse(response=resp, error=None)
self.producer.send(r, properties={"id": id})
except TooManyRequests:

View file

@ -91,7 +91,7 @@ class Processor(ConsumerProducer):
print(resp, flush=True)
print("Send response...", flush=True)
r = TextCompletionResponse(response=resp)
r = TextCompletionResponse(response=resp, error=None)
self.send(r, properties={"id": id})
print("Done.", flush=True)

View file

@ -81,7 +81,7 @@ class Processor(ConsumerProducer):
resp = resp.replace("```", "")
print("Send response...", flush=True)
r = TextCompletionResponse(response=resp)
r = TextCompletionResponse(response=resp, error=None)
self.send(r, properties={"id": id})
print("Done.", flush=True)

View file

@ -76,7 +76,7 @@ class Processor(ConsumerProducer):
resp = response.replace("```json", "")
resp = response.replace("```", "")
r = TextCompletionResponse(response=resp)
r = TextCompletionResponse(response=resp, error=None)
self.send(r, properties={"id": id})