Skip to main content

Model Validation

By default, only models defined through model_price are allowed.

allow_unknown_models_pass_through false;
model_price gpt-4o-mini-2024-07-18 0.15 0.60;

Unknown models are rejected before cache lookup or upstream forwarding.

Pass-through mode

allow_unknown_models_pass_through true;

In this mode, unknown models are forwarded upstream, but cost tracking is not applied for them.

Exact model names

If upstream returns:

gpt-4o-mini-2024-07-18

the config must include the exact same name.