Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
marcklingen committed Aug 15, 2023
1 parent e5b1d82 commit 612dfe7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions components/qaChatbot/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { useMemo, useRef, useState } from "react";
import { cn } from "@/lib/utils";

export function Chat({ className }: { className?: string }) {
const ref = React.useRef<HTMLDivElement>(null);
const ref = useRef<HTMLDivElement>(null);
const conversationId = useMemo(() => nanoid(), []);

// Controlled message histor. Used to update the messages state onFinish to include the latest messageId provided by the server.
Expand Down Expand Up @@ -51,8 +51,6 @@ export function Chat({ className }: { className?: string }) {
},
});

console.log(messages);

const messagesWithWelcome: Message[] = [welcomeMessage, ...messages];

return (
Expand Down
1 change: 0 additions & 1 deletion components/qaChatbot/ui/ButtonScrollToBottom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export function ButtonScrollToBottom({
className
)}
onClick={() => {
console.log("ref", outerDivRef);
outerDivRef?.current?.scrollTo({
top: document.body.offsetHeight,
behavior: "smooth",
Expand Down
1 change: 0 additions & 1 deletion pages/api/qa-chatbot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const langfuse = new Langfuse({

export default async function handler(req: Request, res: Response) {
const body = await req.json();
console.log(body);

const trace = langfuse.trace({
name: "qa",
Expand Down

1 comment on commit 612dfe7

@vercel
Copy link

@vercel vercel bot commented on 612dfe7 Aug 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.