fix message reversing

This commit is contained in:
bracesproul
2025-02-28 14:15:37 -08:00
parent 3f4aad48e6
commit a15a9104b4
6 changed files with 57 additions and 129 deletions

View File

@@ -15,7 +15,9 @@ export default function StockPrice(props: {
apiUrl: "http://localhost:3123",
});
const aiTool = thread.messages
const messagesCopy = thread.messages;
const aiTool = messagesCopy
.slice()
.reverse()
.find(