Plenty of LanguageModelSession.GenerationError.refusal errors after 26.4 update

Hello!

After the 26.4 update I get a huge number of LanguageModelSession.GenerationError.refusal errors when using guided generation Generables for inexplicable reasons. Such errors also occur, if I want to cast a response to boolean by using 'generating: Bool.self'. The explanation generated on the grounds of the error always looks like this:

Response<String>(userPrompt: "", duration: 0.230917542, promptTokenCount: Optional(66), responseTokenCount: Optional(11), feedbackAttachment: nil, content: "I apologize, but I cannot fulfill this request.", rawContent: "I apologize, but I cannot fulfill this request.", transcriptEntries: ArraySlice([]))

All the prompts and Generables I use are definitely not profane. Before 26.4 such errors on the same prompts and Generables never occurred. The 26.4 update rendered those features unusable to me.

Is this a known bug or what am I doing wrong?

Thank you for your feedback! Can you submit a LanguageModelFeedback through Feedback Assistant for this specific issue?

Just in case, the following post provides details about filing feedback for the Foundation Models framework:

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Plenty of LanguageModelSession.GenerationError.refusal errors after 26.4 update
 
 
Q