MCPcopy Index your code
hub / github.com/ChatGPTNextWeb/NextChat / collectModels

Function collectModels

app/utils/model.ts:167–177  ·  view source on GitHub ↗
(
  models: readonly LLMModel[],
  customModels: string,
)

Source from the content-addressed store, hash-verified

165 * Generate full model table.
166 */
167export function collectModels(
168 models: readonly LLMModel[],
169 customModels: string,
170) {
171 const modelTable = collectModelTable(models, customModels);
172 let allModels = Object.values(modelTable);
173
174 allModels = sortModelTable(allModels);
175
176 return allModels;
177}
178
179export function collectModelsWithDefaultModel(
180 models: readonly LLMModel[],

Callers

nothing calls this directly

Calls 2

collectModelTableFunction · 0.85
sortModelTableFunction · 0.85

Tested by

no test coverage detected