sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.27k stars 214 forks source link

Chat: Assign ModelUIGroup for Enterprise model #4607

Closed abeatrix closed 2 weeks ago

abeatrix commented 2 weeks ago

This fixes an issue where we cannot identify if a Gemini is an Enterprise model or a model imported from cody.dev.models

Right now all enterprise models do not have a ModelUIGroup assigned, which would fails the logic here: https://sourcegraph.com/github.com/sourcegraph/cody/-/blob/lib/shared/src/llm-providers/clients.ts?L47

Test plan

No UI or feature change as we currently do not display model dropdown for Enterprise users.