Conversation
When setting up a custom model, query the provider's models endpoint after entering an endpoint and API key. Populate the model field from the response and auto-select when only one model is available. Fixes boldsoftware#204
|
We require contributors to sign our Contributor License Agreement, and we don't have you on file. In order for us to review and merge your code, please contact @crawshaw at david@bold.dev to get yourself added. |
i think i did sign the CLA @philz |
|
@djgpp6 We can't seem to find your CLA (or maybe are having trouble associating usernames). E-mail philip@bold.dev and david@bold.dev and we'll get it sorted out? |
|
yea mayhaps it's because i changed my username (previous one was |
|
Are you still interested in this? Sorry I dropped the ball for a while on these. We've got a fair bit of auto-discovery against the llm integration now, which would need to be somewhat unified perhaps. |
Fixes #204
What
Adding a custom model in Shelley currently means typing the model name by hand. A lot of providers (and proxies) only expose one model, or have a small set you can list via
/v1/models. This wires that up so the model field fills itself.Changes
POST /api/custom-models-discoverto fetch models from the remote provider (OpenAI-style/v1/models, Anthropic/v1/models, Gemini/v1beta/models)Testing
go test ./server/... -run 'TestModelsListURL|TestDiscover|TestHandleDiscover'