Step-by-step answer
Stretch 60 min7 stepsAdd an open-weight model to the bake-off
The model bake-off extended with an OpenAI-SDK adapter that sends the same schema and prompt to open-weight models on OpenRouter (DeepSeek V4.1 Flash, MIT; Qwen3.8 27B, Apache 2.0) or to a local Ollama model, records latency, tokens and OpenRouter's reported cost, and appends the rows to the same table and plot.
Back to the exercise