From 10b80e3e8c8e8dc73722a30324d1c81373388b50 Mon Sep 17 00:00:00 2001 From: Caden Marinozzi Date: Thu, 15 Feb 2024 09:57:38 -0800 Subject: [PATCH] Code cleanup --- TODO.md | 2 +- src/modules/codeProcessing.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index 7f9eb22..3de1e93 100644 --- a/TODO.md +++ b/TODO.md @@ -1,7 +1,6 @@ # Sraipt TODO - Improve generation prompt -- Add support for arrow functions - Improve context to use similarity - Handle AI response that includes more than just the code - Performance benchmarks @@ -10,3 +9,4 @@ - Create module extender method for plug-and-play - Create a logs file - Add support for more webpack frameworks (Next, etc) +- Add support for locally hosted models diff --git a/src/modules/codeProcessing.ts b/src/modules/codeProcessing.ts index d05e838..0305169 100644 --- a/src/modules/codeProcessing.ts +++ b/src/modules/codeProcessing.ts @@ -33,7 +33,7 @@ export const isTypeScriptCode = (source: string): boolean => { plugins: ['@babel/plugin-syntax-jsx'], }); - return !!!AST; + return !AST; } catch (error) { return true; }