Repository navigation
Fix BYOK providers whose model ID is 'auto' - #23026
pol-rivero wants to merge 1 commit into
Conversation
|
Thanks for your pull request! While it doesn't meet all of our standard requirements, it appears to be a small, focused contribution and has been routed to the team for review. Note: We still encourage linking to an issue with the |
|
Thanks @pol-rivero ! What router offers |
|
The original (downstream) bug report is desktop-plus#291, and the reporter was using a self-hosted instance of LiteLLM. They assured me that At least, the fix in the PR can still be useful if the user voluntarily types |
|
The reporter has confirmed that they changed the model name from the one proposed in the official tutorial ( |
|
Thank you @pol-rivero !! After some work with Copilot on this, it suggested a different implementation that I liked better, so I went ahead and submitted a different PR: #23059 I tagged you as co-author of the commit and will try to keep you as contributor when this gets released, I hope you don't mind! Thank you again 🙇♂️ 💖 |
|
Sure thing, thanks for looking into this! :) |
Description
Some OpenAI-compatible routers expose a model literally named
auto. If you choose that model for a custom provider, commit message generation fails with:The credentials are valid. The Copilot runtime treats the session model
autoas its own automatic model selection and sends a built-in model (claude-sonnet-4in my testing) to the provider instead.Changes in my PR:
provider.wireModel.auto, give the session a different model name (byok-auto) so the runtime doesn't apply its auto selection. The provider still receivesauto.Screenshots
N/A
Release notes
Notes: