确认n8n可以使用,且ollama客户端能调用大模型的前提下,把Base URL的localhost改为127.0.0.1即可,本地调用不用配置API Key。
另外,如果n8n部署在docker,ollama在本地,则需要配置http://host.docker.internal:11434/才能让Docker中的n8n连接上本地的ollama。
聽其言而觀其行
确认n8n可以使用,且ollama客户端能调用大模型的前提下,把Base URL的localhost改为127.0.0.1即可,本地调用不用配置API Key。
另外,如果n8n部署在docker,ollama在本地,则需要配置http://host.docker.internal:11434/才能让Docker中的n8n连接上本地的ollama。