Fix replace strings for JSON

This commit is contained in:
Cyber MacGeddon 2024-09-05 20:38:21 +01:00
parent 3445759598
commit a50efe901e
2 changed files with 2 additions and 2 deletions

View file

@ -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})

View file

@ -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)