Use Gemini with n8n implementation seems to default to OpenAI #1246
Unanswered
werther777
asked this question in
Forums - Q&A
Replies: 1 comment
-
|
The issue is the request format — the You have two options: Option A: Use POST /llm/job
{
"url": "https://some_url",
"q": "From the crawled content, extract all recipe names and url. Ensure the url is for a recipe and not any other content",
"provider": "gemini/gemini-2.0-flash",
"schema": "{\"title\": \"RecipeUrlsToScrape\", \"type\": \"object\", \"properties\": {\"recipe_name\": {\"type\": \"string\"}, \"recipe_url\": {\"type\": \"string\"}}, \"required\": [\"recipe_name\", \"recipe_url\"]}"
}Option B: Use POST /crawl
{
"urls": ["https://some_url"],
"crawler_config": {
"extraction_strategy": {
"type": "LLMExtractionStrategy",
"llm_config": {
"provider": "gemini/gemini-2.0-flash",
"api_token": "your-gemini-key"
},
"instruction": "From the crawled content, extract all recipe names and url...",
"schema": { }
},
"cache_mode": "bypass"
}
}Also make sure your |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I'm using crawl4ai on a local docker + endpoint exposed.
n8n is hosted.
The call to the /crawl endpoint is successful, but I receive this:
This is the call:
my docker .env contains the key:
Open API key is empty because I'm not using it. However, the implementation of /crawl seems to assume I am and it's trying to find it.
Any idea? Am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions