Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Handle model's tokens limit #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Handle model's tokens limit #17

wants to merge 1 commit into from

Conversation

edoardob90
Copy link
Owner

Implements a "rolling window" over the chat history, keeping only the most recent messages until the max tokens (minus a buffer) is reached.

Implements a "rolling window" over the chat history, keeping only the most recent messages until the max tokens (minus a buffer) is reached.
@edoardob90 edoardob90 linked an issue Apr 11, 2023 that may be closed by this pull request
@edoardob90 edoardob90 changed the title Handles model's tokens limit Handle model's tokens limit Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle chat history exceeding max tokens
1 participant