https://www.boundaryml.com logo
🟡 Choosing provider in OpenRouter configuration i...
# questions
c
how can I choose the provider in for openrouter ?
Copy code
client OpenCerebras {
    provider "openai-generic"
    options {
        base_url "https://openrouter.ai/api/v1"
        model "openai/gpt-oss-120b"
        api_key env.OPENROUTER_API_KEY
        reasoning_effort "low"
        provider {
            order ["cerebras"]
        }
    }
}
this doesn't seem working because it is much slower if i connect to the cerebras api directly
b
If you open a function in the playground, there's a view to see the equivalent curl request that you can use to debug this!
c
it is actually using cerebras as provider , somehow it's alot slower then using direct api. wondering if anyone has the same experience
b
Sorry, let me rephrase my question: - I’m interpreting your question as baml + openrouter + cerebras is slower than something else, but I’m unclear on whether you’re comparing to openrouter + cerebras or baml+cerebras - I can read “use cerebras directly” a few different ways - So I’m wondering if you’re seeing the slowness when comparing openrouter+cerebras vs just cerebras?
c
openrouter+cerebras vs just cerebras
it has nothing to do with BAML