MCPcopy Create free account
hub / github.com/Dimillian/CodexMonitor / pickDefaultModel

Function pickDefaultModel

src/features/models/hooks/useModels.ts:33–37  ·  view source on GitHub ↗
(models: ModelOption[], configModel: string | null)

Source from the content-addressed store, hash-verified

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

Callers 1

useModelsFunction · 0.85

Calls 1

findModelByIdOrModelFunction · 0.85

Tested by

no test coverage detected