From 96bbcf674b622c890f3d4f215745395dbd9f61bb Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Wed, 18 Dec 2024 15:09:19 -0700 Subject: [PATCH] fix: openai wrapping text-to-sql query in markdown Signed-off-by: Matthew Peveler --- projects/extension/sql/idempotent/905-text-to-sql.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/extension/sql/idempotent/905-text-to-sql.sql b/projects/extension/sql/idempotent/905-text-to-sql.sql index d7acb04b8..81674a478 100644 --- a/projects/extension/sql/idempotent/905-text-to-sql.sql +++ b/projects/extension/sql/idempotent/905-text-to-sql.sql @@ -427,6 +427,7 @@ begin You are an expert database developer and DBA specializing in PostgreSQL. You will be provided with context about a database model and a question to be answered. You respond with nothing but a SQL statement that addresses the question posed. +You should not wrap the SQL statement in markdown. The SQL statement must be valid syntax for PostgreSQL. SQL features and functions that are built-in to PostgreSQL may be used. $txt$);