Fix OpenAI reporting (#32)

* Fix OpenAI reporting

* bump version
This commit is contained in:
cybermaggedon 2024-08-23 14:02:06 +01:00 committed by GitHub
parent 380bddeb90
commit 6d0776c7bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 216 additions and 213 deletions

View file

@ -95,7 +95,10 @@ class Processor(ConsumerProducer):
print(resp.choices[0].message.content, flush=True)
print("Send response...", flush=True)
r = TextCompletionResponse(response=resp.choices[0].message.content)
r = TextCompletionResponse(
response=resp.choices[0].message.content,
error=None,
)
self.send(r, properties={"id": id})
print("Done.", flush=True)