mirror of
				https://github.com/n8n-io/n8n-nodes-starter.git
				synced 2025-10-30 23:02:25 -05:00 
			
		
		
		
	Add DO Gradient Serverless Inference Node
This commit is contained in:
		
					parent
					
						
							
								67ee5b8e80
							
						
					
				
			
			
				commit
				
					
						c3c675ff33
					
				
			
		
					 19 changed files with 5765 additions and 628 deletions
				
			
		
							
								
								
									
										35
									
								
								credentials/DigitalOceanServerlessInference.credentials.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								credentials/DigitalOceanServerlessInference.credentials.ts
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,35 @@ | |||
| import { | ||||
| 	IAuthenticateGeneric, | ||||
| 	ICredentialType, | ||||
| 	INodeProperties, | ||||
| } from 'n8n-workflow'; | ||||
| 
 | ||||
| export class DigitalOceanServerlessInference implements ICredentialType { | ||||
| 	name = 'digitalOceanServerlessInference'; | ||||
| 	displayName = 'DigitalOcean Gradient™ AI Platform'; | ||||
| 	documentationUrl = 'https://docs.digitalocean.com/products/gradient-ai-platform/how-to/use-serverless-inference/'; | ||||
| 	properties: INodeProperties[] = [ | ||||
| 		{ | ||||
| 			displayName: 'Model Access Key', | ||||
| 			name: 'key', | ||||
| 			type: 'string', | ||||
| 			default: '', | ||||
| 			typeOptions: { | ||||
| 				password: true, | ||||
| 			} | ||||
| 		}, | ||||
| 	]; | ||||
| 
 | ||||
| 	// This allows the credential to be used by other parts of n8n
 | ||||
| 	// stating how this credential is injected as part of the request
 | ||||
| 	// An example is the Http Request node that can make generic calls
 | ||||
| 	// reusing this credential
 | ||||
| 	authenticate: IAuthenticateGeneric = { | ||||
| 		type: 'generic', | ||||
| 		properties: { | ||||
| 			headers: { | ||||
| 				Authorization: '={{"Bearer " + $credentials.key}}', | ||||
| 			}, | ||||
| 		}, | ||||
| 	}; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue