(models: ModelOption[], configModel: string | null)
| 31 | }; |
| 32 | |
| 33 | const pickDefaultModel = (models: ModelOption[], configModel: string | null) => |
| 34 | findModelByIdOrModel(models, configModel) ?? |
| 35 | models.find((model) => model.isDefault) ?? |
| 36 | models[0] ?? |
| 37 | null; |
| 38 | |
| 39 | export function useModels({ |
| 40 | activeWorkspace, |
no test coverage detected