Skip to content

NATIVE_CLIENT_REASON

const NATIVE_CLIENT_REASON: “does not build an OpenAI client, so a "configuration" block is not passed through to one” = 'does not build an OpenAI client, so a "configuration" block is not passed through to one'

Defined in: packages/core/src/providers/configurationPassthrough.ts:121

The reason for a provider built on a NATIVE client: there is no OpenAI client anywhere in the chain, so the block has nothing to be handed to.

A shared clause is only safe while it is true of every caller that passes it, and nothing in the language can check that: the field takes any string, so a caller can pass this sentence — or another provider’s — for a provider it is false of, and a warning that states a false reason is the same defect as the silence it replaces. Requiring the field stops one narrow version of that (a default nobody re-read against the new caller) and stops nothing else; copying the neighbouring call site is the likelier move and is exactly how a false clause would spread.

What actually holds it is configurationPassthrough.spec.ts, which pins every warned provider’s printed clause IN ITS SLOT beside that provider’s own name. A clause that migrates to a provider it is false of reddens a cell, and editing THIS sentence reddens every caller that passes it — which is the point: a shared clause has to be re-checked against each of them.