mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 03:10:15 +01:00
properly records bing conversations
This commit is contained in:
parent
b4e22936ba
commit
81e52fed73
6 changed files with 91 additions and 32 deletions
|
|
@ -2,7 +2,6 @@ import React, { useState } from 'react';
|
|||
import Conversation from './Conversation';
|
||||
|
||||
export default function Conversations({ conversations, conversationId }) {
|
||||
|
||||
// const currentRef = useRef(null);
|
||||
|
||||
// const scrollToTop = () => {
|
||||
|
|
@ -20,15 +19,26 @@ export default function Conversations({ conversations, conversationId }) {
|
|||
{/* <div ref={currentRef} /> */}
|
||||
{conversations &&
|
||||
conversations.length > 0 &&
|
||||
conversations.map((convo, i) => (
|
||||
<Conversation
|
||||
key={convo.conversationId}
|
||||
id={convo.conversationId}
|
||||
parentMessageId={convo.parentMessageId}
|
||||
title={convo.title}
|
||||
conversationId={conversationId}
|
||||
/>
|
||||
))}
|
||||
conversations.map((convo, i) => {
|
||||
const bingData = convo.conversationSignature
|
||||
? {
|
||||
conversationSignature: convo.conversationSignature,
|
||||
clientId: convo.clientId,
|
||||
invocationId: convo.invocationId
|
||||
}
|
||||
: null;
|
||||
|
||||
return (
|
||||
<Conversation
|
||||
key={convo.conversationId}
|
||||
id={convo.conversationId}
|
||||
parentMessageId={convo.parentMessageId}
|
||||
title={convo.title}
|
||||
conversationId={conversationId}
|
||||
bingData={bingData}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
{conversations && conversations.length >= 12 && (
|
||||
<button className="btn btn-dark btn-small m-auto mb-2 flex justify-center gap-2">
|
||||
Show more
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue