feat(editor): Remove AI Error Debugging (#9337)

This commit is contained in:
Milorad FIlipović
2024-05-08 14:13:47 +02:00
committed by GitHub
parent f64a41d617
commit cda062bde6
14 changed files with 5 additions and 356 deletions

View File

@@ -2,14 +2,6 @@ import type { IRestApiContext, Schema } from '@/Interface';
import { makeRestApiRequest } from '@/utils/apiUtils';
import type { IDataObject } from 'n8n-workflow';
export interface DebugErrorPayload {
error: Error;
}
export interface DebugErrorResponse {
message: string;
}
export interface GenerateCurlPayload {
service: string;
request: string;
@@ -47,18 +39,6 @@ export async function generateCodeForPrompt(
} as IDataObject);
}
export const debugError = async (
context: IRestApiContext,
payload: DebugErrorPayload,
): Promise<DebugErrorResponse> => {
return await makeRestApiRequest(
context,
'POST',
'/ai/debug-error',
payload as unknown as IDataObject,
);
};
export const generateCurl = async (
context: IRestApiContext,
payload: GenerateCurlPayload,