add credential test block

This commit is contained in:
dledoux 2025-09-09 10:12:27 -05:00
commit 638a103763
3 changed files with 11 additions and 2 deletions

View file

@ -2,6 +2,7 @@ import {
IAuthenticateGeneric,
ICredentialType,
INodeProperties,
ICredentialTestRequest,
} from 'n8n-workflow';
export class DigitalOceanServerlessInferenceApi implements ICredentialType {
@ -32,4 +33,12 @@ export class DigitalOceanServerlessInferenceApi implements ICredentialType {
},
},
};
// This block tells how this credential can be tested
test: ICredentialTestRequest = {
request: {
baseURL: 'https://inference.do-ai.run/v1',
url: '/models',
},
};
}

View file

@ -3,7 +3,7 @@ import { INodeType, INodeTypeDescription, NodeConnectionType } from 'n8n-workflo
import { textFields, textOperations } from './TextDescription';
const baseURL = 'https://inference.do-ai.run/v1';
const version = '1.0.2';
const version = '1.0.3';
export class ServerlessInference implements INodeType {
description: INodeTypeDescription = {

View file

@ -1,6 +1,6 @@
{
"name": "@digitalocean/n8n-nodes-digitalocean-gradient-serverless-inference",
"version": "1.0.2",
"version": "1.0.3",
"description": "This is an n8n community node for the DigitalOcean Gradient™ AI Platform Serverless Inference API",
"keywords": [
"n8n-community-node-package"