mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
fix(Ollama Model Node): Use a simpler credentials test (#8318)
This commit is contained in:
committed by
GitHub
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',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user