MCPcopy
hub / github.com/di-sukharev/opencommit / getSuggestedModels

Function getSuggestedModels

out/cli.cjs:74443–74450  ·  view source on GitHub ↗
(provider, failedModel)

Source from the content-addressed store, hash-verified

74441 const response = error.response;
74442 if (response?.status === 401) {
74443 return true;
74444 }
74445 }
74446 }
74447 return false;
74448}
74449function getSuggestedModels(provider, failedModel) {
74450 const providerKey = provider.toLowerCase();
74451 const models = MODEL_LIST[providerKey];
74452 if (!models || !Array.isArray(models)) {
74453 return [];

Callers 1

handleModelNotFoundErrorFunction · 0.70

Calls 3

toLowerCaseMethod · 0.80
filterMethod · 0.80
sliceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…