Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initialMessages doesn't work, code in main branch #322

Open
daniloitj opened this issue May 1, 2024 · 1 comment
Open

initialMessages doesn't work, code in main branch #322

daniloitj opened this issue May 1, 2024 · 1 comment

Comments

@daniloitj
Copy link

initialMessages is never used, history of previous messages cannot be displayed.

className is not present in the interface

export interface ChatProps extends React.ComponentProps<'div'> {
initialMessages?: Message[]
id?: string
session?: Session
missingKeys: string[]
}

export function Chat({ id, className, session, missingKeys }: ChatProps) {

@logancox
Copy link

logancox commented May 3, 2024

#324 Fixed this issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants