mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
feat(editor): Remove AI Error Debugging (#9337)
This commit is contained in:
committed by
GitHub
parent
f64a41d617
commit
cda062bde6
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user