You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can see there is currently no native way here to ensure we don't hit the max context window?
Would be awesome to have base agents use tiktoken or similar to handle this - or am I missing something?
The text was updated successfully, but these errors were encountered:
Nope you are correct this is one area I have slightly neglected. I am open to suggestions on implementation here, tiktoken can be used for openAI, but we'll need to have an elegant way to support it for every possible provider or have a nice way that we can chip away at it in an extensible way
As far as I can see there is currently no native way here to ensure we don't hit the max context window?
Would be awesome to have base agents use tiktoken or similar to handle this - or am I missing something?
The text was updated successfully, but these errors were encountered: