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

Function isModelAvailableInServer

app/utils/model.ts:196–204  ·  view source on GitHub ↗
(
  customModels: string,
  modelName: string,
  providerName: string,
)

Source from the content-addressed store, hash-verified

194}
195
196export function isModelAvailableInServer(
197 customModels: string,
198 modelName: string,
199 providerName: string,
200) {
201 const fullName = `${modelName}@${providerName}`;
202 const modelTable = collectModelTable(DEFAULT_MODELS, customModels);
203 return modelTable[fullName]?.available === false;
204}
205
206/**
207 * Check if the model name is a GPT-4 related model

Callers

nothing calls this directly

Calls 1

collectModelTableFunction · 0.85

Tested by

no test coverage detected