SilasStokes / pymessage_gpt_bot

3 stars 0 forks source link

Add ability to truncate text messages by token limit set by openai #5

Open SilasStokes opened 9 months ago

SilasStokes commented 9 months ago

Right now if you try to give gpt too much text history it will explode. We need a way to truncate both our requests to the api and then length of the response.