openai-java icon indicating copy to clipboard operation
openai-java copied to clipboard

why chatGPT tell me there is a parameter named 'Conversation ID' can use , but not found in the documentation anywhere

Open luoweiwei0908 opened this issue 3 years ago • 2 comments

luoweiwei0908 avatar Mar 03 '23 08:03 luoweiwei0908

Hi, What is the conclusion about this issue?

bladestone01 avatar Apr 23 '23 01:04 bladestone01

Best practice right now across OpenAI, Python APIs to it, and this project is to include a capped previous number of prompts and responses in the data structure:

List<ChatMessage> messages;

You can can also use a Guava EvictingQueue

EvictingQueue<ChatMessage> q = EvictingQueue.create(3);
....
q.add(response); // evicts the oldest response

Part of the reason OpenAI reduced the cost of ChatGPT3.5-turbo is for this very reason. Even though OpenAI's Web UI implementation does have a conversation_id, their API as far as I can see does not support it yet. Some have tried to start a conversation on the OpenAI forums about it.

conversation ID missing

cryptoapebot avatar Apr 23 '23 15:04 cryptoapebot