Welcome to Portkey Forum

Updated 2 days ago

Blocking a Specific Model

Hello,
In the documentation I see an option to block a specific model but, when I try the same Config is not accepting "model" property. Please let me know

This is from Portkey documentation:
For example, if you're using OpenAI and want to block a specific model, your configuration might look like this:

{
"provider": "openai",
"api_key": "your-api-key",
"model": "gpt-4" // Specify only the model(s) you want to use
}
v
s
3 comments
Hey! model param needs to be sent under the override_params. Here is an example: https://portkey.ai/docs/product/ai-gateway/fallbacks#enabling-fallback-on-llms

Can you please share the link from where you got the mentioned code snippet. We will fix it.
I searched in the search bar of Portkey site and I saw that information.
With override_params, it should work fine. Please let me know if you still face any issues.
Add a reply
Sign up and join the conversation on Discord