chore: bump version (#3197)

This commit is contained in:
Alex Yang
2023-07-13 00:25:35 +08:00
committed by GitHub
parent 73a47f31a7
commit e475a9cdbc
5 changed files with 134 additions and 59 deletions

View File

@@ -1,10 +1,10 @@
import type { BaseChatMessage } from 'langchain/schema';
import type { BaseMessage } from 'langchain/schema';
import { Conversation } from '../conversation';
import { conversationListStyle } from './index.css';
export type ConversationListProps = {
conversations: BaseChatMessage[];
conversations: BaseMessage[];
};
export const ConversationList = (props: ConversationListProps) => {
@@ -13,7 +13,7 @@ export const ConversationList = (props: ConversationListProps) => {
{props.conversations.map((conversation, idx) => (
<Conversation
type={conversation._getType()}
text={conversation.text}
text={conversation.content}
key={idx}
/>
))}