From d61ca4001c7f6aa631c88b2b0164f7f3368ebec9 Mon Sep 17 00:00:00 2001 From: wenzhe <145375501+wenzhe-log10@users.noreply.github.com> Date: Mon, 15 Apr 2024 15:20:21 -0700 Subject: [PATCH] pass json.dumps of converted prompt (#142) --- log10/prompt_analyzer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log10/prompt_analyzer.py b/log10/prompt_analyzer.py index 2a1dc1f0..20d5f563 100644 --- a/log10/prompt_analyzer.py +++ b/log10/prompt_analyzer.py @@ -83,7 +83,7 @@ def _suggest(self, prompt_json: json, report: dict | None = None) -> dict: report = json.dumps(report) json_payload = { - "base_prompt": prompt_json, + "base_prompt": json.dumps(prompt_json), "report": report, "session_id": self.__session_id, }