I'm an AI assistant - my answers may be incorrect and I cannot see screenshots. Please verify information with the OpenRouter docs.
To ensure that your requests are always routed to a provider that supports the logprobs parameter, you need to:
- Check the Supported Parameters for each provider on the model's page to confirm logprobs support.
- Use the API's provider selection features to specify a provider that supports logprobs.
For example, for Llama 3.1 70B Instruct, you can see which providers support logprobs by looking for "Logprobs" under "Supported parameters" in the provider table. Providers like Lambda, Nebius AI Studio, and Hyperbolic currently list "Logprobs" as supported Llama 3.1 70B Instruct Providers.
You can specify the provider in your API request by using the provider-specific route:
POST https://openrouter.ai/api/v1/chat/completions
{
"model": "meta-llama/llama-3.1-70b-instruct",
"provider": "lambda", // or "hyperbolic", etc.
"logprobs": true,
...
}
"According to the OpenRouter model catalog, you can view models and their available providers, including supported parameters like logprobs."
There is no automated way to force fallback only to providers supporting logprobs; you must explicitly specify a provider that lists logprobs as a supported parameter Llama 3.1 70B Instruct Providers.
I recommend always checking the OpenRouter Models page for the latest provider capabilities, as support for parameters can change.
-# This is an automated response powered by Answer HQ. Use !mute to stop the bot from responding.