mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
fix(Ollama Model Node): Use a simpler credentials test (#8318)
This commit is contained in:
parent
135b543fd3
commit
63b738a542
|
@ -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',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue