n8n/packages/@n8n/nodes-langchain/credentials/OllamaApi.credentials.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
531 B
TypeScript
Raw Normal View History

import type { ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
export class OllamaApi implements ICredentialType {
name = 'ollamaApi';
displayName = 'Ollama';
documentationUrl = 'ollama';
properties: INodeProperties[] = [
{
displayName: 'Base URL',
name: 'baseUrl',
required: true,
type: 'string',
default: 'http://localhost:11434',
},
];
test: ICredentialTestRequest = {
request: {
baseURL: '={{ $credentials.baseUrl }}',
url: '/',
method: 'GET',
},
};
}