ykhli / cat-town

A custom AI-town with cats. Based on https://github.com/a16z-infra/AI-town
https://cat-town.fly.dev/
MIT License
118 stars 10 forks source link

Include top 5 reflection memories in converse() function #6

Open sweep-ai[bot] opened 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR addresses the issue #5 by modifying the converse() function in conversation.ts to include the top 5 reflection memories in the chat prompt. Currently, the function only fetches conversation memories and does not consider reflection memories. This update ensures that the chat prompt includes relevant reflection memories, providing a more contextually aware conversation experience.

Summary of Changes

Fixes #5.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/fix-converse-function

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.