mirror of
				https://github.com/n8n-io/n8n-nodes-starter.git
				synced 2025-10-30 23:02:25 -05:00 
			
		
		
		
	add credential test block
This commit is contained in:
		
					parent
					
						
							
								f7fa0abb18
							
						
					
				
			
			
				commit
				
					
						638a103763
					
				
			
		
					 3 changed files with 11 additions and 2 deletions
				
			
		|  | @ -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', | ||||
| 		}, | ||||
| 	}; | ||||
| } | ||||
|  |  | |||
|  | @ -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 = { | ||||
|  |  | |||
|  | @ -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" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue