Skip to content
This repository was archived by the owner on Apr 16, 2025. It is now read-only.

Commit d2c6a4d

Browse files
authored
Merge pull request #83 from PHS-TSA/fix-chatbot
fix: render chatbot
2 parents 34cbe95 + f8f7f45 commit d2c6a4d

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/islands/Chatbot.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,12 @@ import {
2222
import { chat } from "../sdk/chat/index.ts";
2323
import { getThreadId } from "../sdk/chat/thread.ts";
2424
import { setIndexedDb, useIndexedDb } from "../utils/hooks/indexeddb.ts";
25-
import { constants as openAiConstants } from "../utils/openai/assistant.ts";
2625
import { formatRefs } from "../utils/openai/references.ts";
2726
import type { Message } from "../utils/openai/schemas.ts";
2827
import { tw } from "../utils/tags.ts";
2928
import { Markdown } from "./Markdown.tsx";
3029

3130
export function Chatbot(): JSX.Element {
32-
if (openAiConstants === undefined) {
33-
// This is also handled in the layout,
34-
// but this stops us from shooting ourselves in the foot later,
35-
// in case we change something.
36-
return <></>;
37-
}
38-
3931
const icon = <IconMessageChatbot class="size-8" />;
4032
const buttonStyles = clsx(floatingButtonStyles, blueButtonStyles);
4133

0 commit comments

Comments
 (0)