mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -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 = {
|
||||
request: {
|
||||
baseURL: '={{ $credentials.baseUrl }}',
|
||||
url: '/api/generate',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'anthropic-version': '2023-06-01',
|
||||
},
|
||||
body: {
|
||||
model: 'llama2',
|
||||
prompt: 'Hello',
|
||||
},
|
||||
url: '/',
|
||||
method: 'GET',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue