mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-18 03:45:12 +02:00
Fix LLM output reporting (#31)
* Fix LLM output reporting * Bump version
This commit is contained in:
parent
1e92b2048a
commit
380bddeb90
20 changed files with 216 additions and 216 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue