transitive-bullshit / agentic

AI agent stdlib that works with any LLM and TypeScript AI SDK.
MIT License
16.07k stars 2.11k forks source link

Bug of not remembering old message #613

Closed zfcsoftware closed 1 month ago

zfcsoftware commented 10 months ago

Verify latest release

Verify webapp is working

Environment details

image

The example given works fine, but there is a problem. When the code is not asked repeatedly in this way, it cannot remember the old message. image

I asked him to name two things about Github. He did. Now I want him to count more to check if he can remember.

image

As you can see, it doesn't remember the previous message even though I ask it with the id value of the previous message, and it's just nonsense. It works when used as it is in the npm library, but it doesn't remember when used sequentially like this. I had this problem in one of my projects, thanks.

brenc commented 10 months ago

FYI you exposed your API key there in a few of the screenshots.

zfcsoftware commented 10 months ago

FYI you exposed your API key there in a few of the screenshots.

5 dollars is a trial key with a balance. It is not a problem for me, I have more than 60. Thank you very much for your warning.

transitive-bullshit commented 1 month ago

This project is undergoing a major revamp; closing out old issues as part of the prep process.

The chatgpt package is pretty outdated at this point. I recommend that you use the openai package or the openai-fetch package instead.