From 8c08d992fd35b688c0a6722808b6e2ea285130cd Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Tue, 28 Nov 2023 14:33:03 -0500 Subject: [PATCH] print system prompt info in the backend logs --- backend/prompts.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/prompts.py b/backend/prompts.py index 18dde89..f01eb7e 100644 --- a/backend/prompts.py +++ b/backend/prompts.py @@ -84,12 +84,17 @@ Generate code for a web page that looks exactly like this. def assemble_prompt(image_data_url, output_settings: dict, result_image_data_url=None): # Set the system prompt based on the output settings + chosen_prompt_name = "tailwind" system_content = TAILWIND_SYSTEM_PROMPT if output_settings["css"] == "bootstrap": + chosen_prompt_name = "bootstrap" system_content = BOOTSTRAP_SYSTEM_PROMPT if output_settings["js"] == "react": + chosen_prompt_name = "react-tailwind" system_content = REACT_TAILWIND_SYSTEM_PROMPT + print("Using system prompt:", chosen_prompt_name) + user_content = [ { "type": "image_url",