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.

Accepted Answer

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

It is fixed in beta 3 (streaming version, I didn't try non streaming). Thanks!

LanguageModelSession.GenerationError.exceededContextWindowSize not called
 
 
Q