LanguageModelSession.GenerationError.exceededContextWindowSize not called

When context window size exceeded, this error is not called (instead another error has shown up) to handle new session.

LanguageModelSession.GenerationError.exceededContextWindowSize

Or am I doing things wrong?

Answered by Frameworks Engineer in 847671022

Thanks for flagging this. This is a known issue tracked under 153892731 and it happens only when you are streaming the response.

Thanks for flagging this. This is a known issue tracked under 153892731 and it happens only when you are streaming the response.

LanguageModelSession.GenerationError.exceededContextWindowSize not called
 
 
Q