mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-31 23:32:26 -05:00
fix linting issues and rename files for clarity
This commit is contained in:
parent
c3c675ff33
commit
d618deafa3
8 changed files with 529 additions and 213 deletions
|
|
@ -1,55 +0,0 @@
|
|||
import { INodeType, INodeTypeDescription, NodeConnectionType } from 'n8n-workflow';
|
||||
|
||||
import { textFields, textOperations } from './TextDescription';
|
||||
|
||||
const baseURL = 'https://inference.do-ai.run/v1';
|
||||
|
||||
export class ServerlessInference implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'DigitalOcean Gradient™ AI Serverless Inference',
|
||||
documentationUrl: 'https://gradientai-sdk.digitalocean.com/api/resources/chat/subresources/completions/methods/create',
|
||||
name: 'digitalOceanGradientServerlessInference',
|
||||
icon: { light: 'file:DO-Gradient-AI-Agentic-Cloud-logo.svg', dark: 'file:DO-gradient-ai-logo-white.svg' },
|
||||
group: ['transform'],
|
||||
version: [1, 1.0],
|
||||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||
description: 'Consume DigitalOcean Gradient™ AI Serverless Inference',
|
||||
defaults: {
|
||||
name: 'DigitalOcean Gradient™ AI Serverless Inference',
|
||||
},
|
||||
inputs: [NodeConnectionType.Main],
|
||||
outputs: [NodeConnectionType.Main],
|
||||
credentials: [
|
||||
{
|
||||
name: 'digitalOceanServerlessInference',
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
requestDefaults: {
|
||||
ignoreHttpStatusErrors: true,
|
||||
baseURL,
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
'User-Agent': 'Gradient/n8n/1.0.0',
|
||||
},
|
||||
},
|
||||
properties: [
|
||||
{
|
||||
displayName: 'Resource',
|
||||
name: 'resource',
|
||||
type: 'options',
|
||||
noDataExpression: true,
|
||||
options: [
|
||||
{
|
||||
name: 'Text',
|
||||
value: 'text',
|
||||
},
|
||||
],
|
||||
default: 'text',
|
||||
},
|
||||
...textOperations,
|
||||
...textFields,
|
||||
],
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue