#remember previous conversation

13 messages ยท Page 1 of 1 (latest)

hollow pecan
#

I just started using api how do I make it remember previous conversations I don't see anything in docs can anyone help?

Do i have to pass all conversations as prompt?

I am using Golang btw if there are any wrapper for go pls share

gusty raven
#

Yup you need to pass the conversation back in as the model has no memory between requests

hollow pecan
#

Wouldn't this will consume more tokens?

#

is there any api official/unofficial wrapper for golang

gusty raven
#

Yea this does take more tokens, there are ways to reduce such as using embeddings to only pass the relevant parts of the conversation back. A quick google search found me this unofficial wrapper https://github.com/sashabaranov/go-openai

plain canopy
#

Does the paid version (api) not keep a pretty long history? That's one of its perks, no? I may have missed something there. Yes I'm a noob is this is an idiotic question feel free to make fun of me, as long as there's also a correct answer ๐Ÿ™‚

regal granite
#

What Book said is accurate. New Paid Version doesnt keep a history in between completions. None of the APIs do that, TMK.

last herald
#

^ Confirmed!

plain canopy
#

hmmm. I thought that was supposed to be one of the features. My GPT extension on VScode seems to have quite a long "memory" of old convos

last herald
#

The logic to track conversation history has to be written by yourself

plain canopy
#

I have a google extension that (i didn't build it, gosh no), that I think it's phenomenal and could very well be THE google extension. Who knows, regardless, much of it runs locally. I'm logged in to chatGPT when using it and all, it's not like some illegal workaround, but I'm curious if all my data/info/usage is still getting back to openAI? Even though I'm running a lot locally, does the devs API send you the info? Sam and GPT5 need DATA!!!! apparently ๐Ÿ™‚