OpenAI-compatible SDKs always set the model field in the request body. This is a required parameter and can’t be omitted.
AI Proxy Advanced validates the body model against the plugin-configured model. If they don’t match, the plugin rejects the request with 400 Bad Request: cannot use own model - must be: <configured-model>.
Instead of hardcoding a model in the plugin config, you can let the SDK’s model value drive the upstream selection. The Pre-function plugin extracts the model into a custom header, and AI Proxy Advanced reads it through a template variable. The validation passes because the resolved plugin model matches the body model.