mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-17 09:11:03 +02:00
Fix replace strings for JSON
This commit is contained in:
parent
3445759598
commit
a50efe901e
2 changed files with 2 additions and 2 deletions
|
|
@ -135,7 +135,7 @@ class Processor(ConsumerProducer):
|
|||
print("Send response...", flush=True)
|
||||
|
||||
resp = response.replace("```json", "")
|
||||
resp = response.replace("```", "")
|
||||
resp = resp.replace("```", "")
|
||||
|
||||
r = TextCompletionResponse(response=resp, error=None)
|
||||
self.producer.send(r, properties={"id": id})
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ class Processor(ConsumerProducer):
|
|||
print("Send response...", flush=True)
|
||||
|
||||
resp = response.replace("```json", "")
|
||||
resp = response.replace("```", "")
|
||||
resp = resp.replace("```", "")
|
||||
|
||||
r = TextCompletionResponse(response=resp, error=None)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue