enzostvs HF Staff commited on
Commit
24fa765
·
1 Parent(s): 6d7b2cf

send html code

Browse files
app/projects/[namespace]/[repoId]/page.tsx CHANGED
@@ -6,6 +6,7 @@ import MY_TOKEN_KEY from "@/lib/get-cookie-name";
6
  import { AppEditor } from "@/components/editor";
7
 
8
  async function getProject(namespace: string, repoId: string) {
 
9
  const cookieStore = await cookies();
10
  const token = cookieStore.get(MY_TOKEN_KEY())?.value;
11
  if (!token) return {};
 
6
  import { AppEditor } from "@/components/editor";
7
 
8
  async function getProject(namespace: string, repoId: string) {
9
+ // TODO replace with a server action
10
  const cookieStore = await cookies();
11
  const token = cookieStore.get(MY_TOKEN_KEY())?.value;
12
  if (!token) return {};
components/editor/ask-ai/index.tsx CHANGED
@@ -135,6 +135,7 @@ export function AskAI({
135
  prompt,
136
  provider,
137
  model,
 
138
  redesignMarkdown,
139
  }),
140
  headers: {
 
135
  prompt,
136
  provider,
137
  model,
138
+ html: html === defaultHTML ? "" : html,
139
  redesignMarkdown,
140
  }),
141
  headers: {