fix(Ollama Model Node): Use a simpler credentials test (#8318)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-01-12 16:37:46 +01:00
committed by GitHub
parent 135b543fd3
commit 63b738a542

View File

@@ -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',
},
};
}