gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

Using the context of previous messages

Open danyl756 opened this issue 2 years ago • 4 comments
trafficstars

Hi, I'm creating a bot, how can I make GPT chat use the context of previous messages when a new message is sent from a user?

danyl756 avatar Oct 11 '23 11:10 danyl756

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] avatar Oct 19 '23 00:10 github-actions[bot]

This would be great to know. I don't see a point in using this API unless it can use the chat context. Might as well just use the providers interfaces themselves (e.g. Bing) because at least it has chat context.

huachuman avatar Nov 09 '23 11:11 huachuman

You can have a chat context. Simply add your context to the messages.

A Conversation API is not planned or wanted.

Only Bing has in g4f a Conversation Api, but there is no Documentation jet.

hlohaus avatar Feb 26 '24 14:02 hlohaus

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] avatar Mar 18 '24 00:03 github-actions[bot]

Closing due to inactivity.

github-actions[bot] avatar Apr 23 '24 00:04 github-actions[bot]

You can have a chat context. Simply add your context to the messages.

A Conversation API is not planned or wanted.

Only Bing has in g4f a Conversation Api, but there is no Documentation jet.

I don't quite understand why it's set up the way it is then, to look and act as a chat interface, if it was never intended to take context into account.

You say only bing has conversation, but I've use many other ones that have conversation even though it's not built into api

huachuman avatar Apr 23 '24 11:04 huachuman

Every provider support conversation with messages

hlohaus avatar Apr 23 '24 14:04 hlohaus