signebedi / gptty

ChatGPT wrapper in your TTY
MIT License
47 stars 7 forks source link

[context] logic sometimes fails to constrain queries to `max_context_length` #53

Closed signebedi closed 1 year ago

signebedi commented 1 year ago

Under some circumstances, get_context returns queries that exceed max_context_length. I think this is because we are not accounting for the question's length when we test for the max_context_length..