Skip to content

Commit

Permalink
Merge pull request #83 from PHS-TSA/fix-chatbot
Browse files Browse the repository at this point in the history
fix: render chatbot
  • Loading branch information
lishaduck authored Nov 9, 2024
2 parents 34cbe95 + f8f7f45 commit d2c6a4d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/islands/Chatbot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,12 @@ import {
import { chat } from "../sdk/chat/index.ts";
import { getThreadId } from "../sdk/chat/thread.ts";
import { setIndexedDb, useIndexedDb } from "../utils/hooks/indexeddb.ts";
import { constants as openAiConstants } from "../utils/openai/assistant.ts";
import { formatRefs } from "../utils/openai/references.ts";
import type { Message } from "../utils/openai/schemas.ts";
import { tw } from "../utils/tags.ts";
import { Markdown } from "./Markdown.tsx";

export function Chatbot(): JSX.Element {
if (openAiConstants === undefined) {
// This is also handled in the layout,
// but this stops us from shooting ourselves in the foot later,
// in case we change something.
return <></>;
}

const icon = <IconMessageChatbot class="size-8" />;
const buttonStyles = clsx(floatingButtonStyles, blueButtonStyles);

Expand Down

0 comments on commit d2c6a4d

Please sign in to comment.