From 63b738a542429934b3838bfc814ea2a4c51675c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Fri, 12 Jan 2024 16:37:46 +0100 Subject: [PATCH] fix(Ollama Model Node): Use a simpler credentials test (#8318) --- .../credentials/OllamaApi.credentials.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/@n8n/nodes-langchain/credentials/OllamaApi.credentials.ts b/packages/@n8n/nodes-langchain/credentials/OllamaApi.credentials.ts index 4b689f3d03..acfbbcd3f9 100644 --- a/packages/@n8n/nodes-langchain/credentials/OllamaApi.credentials.ts +++ b/packages/@n8n/nodes-langchain/credentials/OllamaApi.credentials.ts @@ -20,15 +20,8 @@ export class OllamaApi implements ICredentialType { test: ICredentialTestRequest = { request: { baseURL: '={{ $credentials.baseUrl }}', - url: '/api/generate', - method: 'POST', - headers: { - 'anthropic-version': '2023-06-01', - }, - body: { - model: 'llama2', - prompt: 'Hello', - }, + url: '/', + method: 'GET', }, }; }