ai newsDi., 1. Dez.
EilmeldungThe Model Proposes, Your Code Disposes: A Tool-Calling Agent Loop for Android with Gemini Nano

Your AI Chat Suddenly Refuses to Answer? There Are Three Different Causes

You're in the middle of a long chat or a roleplay session, everything is going fine — and then, out of nowhere, the model refuses to answer. Most people's first reaction is to switch models. But "refusal" is actually three different problems wearing the same mask, and each one has a different fix.

dev.toSonntag 18:21 · 29.11.1 Min. Lesezeit
Bild: dev.to

You're in the middle of a long chat or a roleplay session, everything is going fine — and then, out of nowhere, the model refuses to answer.

Most people's first reaction is to switch models. But "refusal" is actually three different problems wearing the same mask, and each one has a different fix.

Some model versions are simply stricter than others. The same prompt that one version answers happily, another version refuses outright.

Fix: this is the one case where switching models (or switching to a less restricted version of the same model) actually works.

Sometimes your text never arrives at the model at all. A content-inspection layer on the provider's side scans the request first and kills it in transit — if you've ever seen an error like DataInspectionFailed, that's exactly what happened.

Fix: rewriting your prompt won't help, because the model never saw it. The block is on the line, not in the model. You need a route that doesn't run that inspection.

In a long session, earlier sensitive words stay in the context and get re-read on every turn. The longer you chat, the more chances the filter has to trip — which is why refusals often show up mid-session instead of at the start.

Fix: trim or summarize the context, or start a fresh thread and carry over only the summary. If refusals vanish in a new thread, this was your cause.

I run Lingyi, a small API relay (DeepSeek / GLM / Kimi, original and less-restricted versions, per-use billing you can audit line by line): https://ai.lingapp.io/?aff=vrDV — questions welcome. ``

Quelle: dev.to (dev.to). Original öffnen