Skip to content

Commit

Permalink
👕 Removing unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloradFilipovic committed May 8, 2024
1 parent be03d63 commit 193c8c6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
4 changes: 1 addition & 3 deletions packages/cli/src/controllers/ai.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import { FailedDependencyError } from '@/errors/response-errors/failed-dependenc

@RestController('/ai')
export class AIController {
constructor(
private readonly aiService: AIService,
) {}
constructor(private readonly aiService: AIService) {}

/**
* Generate CURL request and additional HTTP Node metadata for given service and request
Expand Down
1 change: 0 additions & 1 deletion packages/cli/src/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import type {
INodeParameters,
INodeTypeNameVersion,
IUser,
NodeError,
} from 'n8n-workflow';

import { IsBoolean, IsEmail, IsIn, IsOptional, IsString, Length } from 'class-validator';
Expand Down
5 changes: 1 addition & 4 deletions packages/cli/src/services/ai.service.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { Service } from 'typedi';
import config from '@/config';
import type { INodeType, N8nAIProviderType, NodeError } from 'n8n-workflow';
import type { N8nAIProviderType } from 'n8n-workflow';
import { ApplicationError, jsonParse } from 'n8n-workflow';
import type { BaseMessageLike } from '@langchain/core/messages';
import { AIProviderOpenAI } from '@/services/ai/providers/openai';
import type { BaseChatModelCallOptions } from '@langchain/core/language_models/chat_models';
import { summarizeNodeTypeProperties } from '@/services/ai/utils/summarizeNodeTypeProperties';
import { Pinecone } from '@pinecone-database/pinecone';
import type { z } from 'zod';
import apiKnowledgebase from '@/services/ai/resources/api-knowledgebase.json';
Expand All @@ -17,8 +16,6 @@ import {
import { generateCurlSchema } from '@/services/ai/schemas/generateCurl';
import { PineconeStore } from '@langchain/pinecone';
import Fuse from 'fuse.js';
import { N8N_DOCS_URL } from '@/constants';

interface APIKnowledgebaseService {
id: string;
title: string;
Expand Down
3 changes: 1 addition & 2 deletions packages/cli/test/unit/services/ai.service.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { INode, INodeType } from 'n8n-workflow';
import { ApplicationError, jsonParse, NodeOperationError } from 'n8n-workflow';
import { ApplicationError, jsonParse } from 'n8n-workflow';
import { AIService } from '@/services/ai.service';
import config from '@/config';
import {
Expand Down

0 comments on commit 193c8c6

Please sign in to comment.