diff --git a/apps/api/src/lib/LLM-extraction/models.ts b/apps/api/src/lib/LLM-extraction/models.ts index ec8a710..ff805bb 100644 --- a/apps/api/src/lib/LLM-extraction/models.ts +++ b/apps/api/src/lib/LLM-extraction/models.ts @@ -59,7 +59,7 @@ export async function generateOpenAICompletions({ }, }, ], - tool_choice: "auto", + tool_choice: { "type": "function", "function": {"name": "extract_content"}}, temperature, }); @@ -74,3 +74,4 @@ export async function generateOpenAICompletions({ llm_extraction: llmExtraction, }; } +