Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update models.ts

Nicolas8a95cb42f0ad
diff --git a/apps/api/src/lib/LLM-extraction/models.ts b/apps/api/src/lib/LLM-extraction/models.ts
index ec8a7106f..ff805bb83 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,
};
}
+