mirror of
				https://github.com/n8n-io/n8n-nodes-starter.git
				synced 2025-10-30 14:52:27 -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, | 	IAuthenticateGeneric, | ||||||
| 	ICredentialType, | 	ICredentialType, | ||||||
| 	INodeProperties, | 	INodeProperties, | ||||||
|  | 	ICredentialTestRequest, | ||||||
| } from 'n8n-workflow'; | } from 'n8n-workflow'; | ||||||
| 
 | 
 | ||||||
| export class DigitalOceanServerlessInferenceApi implements ICredentialType { | 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'; | import { textFields, textOperations } from './TextDescription'; | ||||||
| 
 | 
 | ||||||
| const baseURL = 'https://inference.do-ai.run/v1'; | const baseURL = 'https://inference.do-ai.run/v1'; | ||||||
| const version = '1.0.2'; | const version = '1.0.3'; | ||||||
| 
 | 
 | ||||||
| export class ServerlessInference implements INodeType { | export class ServerlessInference implements INodeType { | ||||||
| 	description: INodeTypeDescription = { | 	description: INodeTypeDescription = { | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| { | { | ||||||
|   "name": "@digitalocean/n8n-nodes-digitalocean-gradient-serverless-inference", |   "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", |   "description": "This is an n8n community node for the DigitalOcean Gradient™ AI Platform Serverless Inference API", | ||||||
|   "keywords": [ |   "keywords": [ | ||||||
|     "n8n-community-node-package" |     "n8n-community-node-package" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue