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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,15 +20,8 @@ export class OllamaApi implements ICredentialType {
test: ICredentialTestRequest = { test: ICredentialTestRequest = {
request: { request: {
baseURL: '={{ $credentials.baseUrl }}', baseURL: '={{ $credentials.baseUrl }}',
url: '/api/generate', url: '/',
method: 'POST', method: 'GET',
headers: {
'anthropic-version': '2023-06-01',
},
body: {
model: 'llama2',
prompt: 'Hello',
},
}, },
}; };
} }