moodle-block_openai_chat icon indicating copy to clipboard operation
moodle-block_openai_chat copied to clipboard

Feature Request: Limit number of intereactions with GPT

Open michael-milette opened this issue 1 year ago • 2 comments
trafficstars

Hi @Limekiller ,

Would it be possible to add an optional setting to limit the number of interactions that a user can have with the GPT chatbot? Kind of like the way Bing Chat limits you to 30 questions.

The number of interactions should be configurable at a site level and also at an instance level with a maximum equal to the value set in the plugin's settings, if one is set. Once a user runs out of questions, they would be able to restart a new chat session but lose the context of the current conversation. An interaction counter should be displayed with each interaction.

The reason for this request is to try to curb abuse (and cost) associated with people using the chatbot for unrelated purposes and also to reduce the cost of resubmitting an ever-growing history.

Another option might be to limit its memory to X number of interactions and then drop the oldest one as the conversation goes on. I must confess that I have not thought this option through and suspect that loss of context might end up being confusing.

Let me know if you have any questions.

Best regards,

Michael

michael-milette avatar Dec 22 '23 01:12 michael-milette

Totally agree, @michael-milette. We definitely need this.

binu-joy avatar Jun 20 '24 08:06 binu-joy

If you are using the open ai assistant the truncation (smart) of the context can be done very easy by setting one of the properties of the thread to auto , then everything get handled by the API. https://platform.openai.com/docs/assistants/deep-dive#truncation-strategy

sorydi3 avatar Nov 30 '24 10:11 sorydi3