From 067d5b1236e3dcc77244b80c4dc44eced35b789c Mon Sep 17 00:00:00 2001 From: ankushKun Date: Fri, 18 Oct 2024 14:17:16 +0530 Subject: [PATCH] =?UTF-8?q?permahacks=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/editor/components/notebook-editor.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/next_app/src/components/views/components/editor/components/notebook-editor.tsx b/next_app/src/components/views/components/editor/components/notebook-editor.tsx index f922301..87d88e5 100644 --- a/next_app/src/components/views/components/editor/components/notebook-editor.tsx +++ b/next_app/src/components/views/components/editor/components/notebook-editor.tsx @@ -1,7 +1,6 @@ import { Button } from "@/components/ui/button"; import { useGlobalState } from "@/hooks"; import useProjectManager, { PFile, ProjectManager, Project } from "@/hooks/useProjectManager"; -import { CompletionFormatter } from "@/lib/ai-completion-formatter"; import { runLua } from "@/lib/ao-vars"; import { Editor, useMonaco } from "@monaco-editor/react"; import { sendGAEvent } from "@next/third-parties/google"; @@ -18,11 +17,14 @@ import Markdown from "react-markdown"; import Latex from "react-latex-next"; import remarkGfm from "remark-gfm"; import { v4 } from "uuid"; +import dynamic from "next/dynamic"; +import runIcon from "@/assets/icons/run.svg"; + +// AI AUTOCOMPLETE (PERMAHACKS BOUNTY) import { createGoogleGenerativeAI } from "@ai-sdk/google"; import { generateText } from "ai"; +import { CompletionFormatter } from "@/lib/ai-completion-formatter"; import { generateContext } from "@/lib/ai"; -import dynamic from "next/dynamic"; -import runIcon from "@/assets/icons/run.svg"; const Plot = dynamic( () =>