Skip to content

Instantly share code, notes, and snippets.

"use client";
import { FC } from "react";
import type { MessageType } from "langchain/schema";
interface ChatMessageProps {
text: string;
type: MessageType;
}
"use client";
import {
FC,
FormEvent,
useState,
useCallback,
useRef,
useEffect,
useMemo,
} from "react";
OPENAI_API_KEY=''
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.