Skip to content

Commit

Permalink
fix: calling generate functions with openai
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Peveler <mpeveler@timescale.com>
  • Loading branch information
MasterOdin authored and jgpruitt committed Feb 7, 2025
1 parent 59b9e6c commit 3bf9b38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/extension/ai/semantic_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def generate_description(
$1
, $2
, tools => $3
, tool_choice => '{"type": "function", "function": {"name": "generate_description"}}'::jsonb
, tool_choice => '{"type": "function", "function": {"name": "generate_description"}}'
)
""",
["text", "jsonb", "jsonb"],
Expand Down Expand Up @@ -293,7 +293,7 @@ def generate_column_descriptions(
$1
, $2
, tools => $3
, tool_choice => '{"type": "function", "function": {"name": "generate_description"}}'::jsonb
, tool_choice => '{"type": "function", "function": {"name": "generate_description"}}'
)
""",
["text", "jsonb", "jsonb"],
Expand Down Expand Up @@ -414,7 +414,7 @@ def generate_function_description(
$1
, $2
, tools => $3
, tool_choice => '{"type": "function", "function": {"name": "generate_description"}}'::jsonb
, tool_choice => '{"type": "function", "function": {"name": "generate_description"}}'
)
""",
["text", "jsonb", "jsonb"],
Expand Down

0 comments on commit 3bf9b38

Please sign in to comment.