MCPcopy Create free account
hub / github.com/ChatGPTBox-dev/chatGPTBox / modelNameToCustomPart

Function modelNameToCustomPart

src/utils/model-name-convert.mjs:39–45  ·  view source on GitHub ↗
(modelName)

Source from the content-addressed store, hash-verified

37}
38
39export function modelNameToCustomPart(modelName) {
40 if (isCustomModelName(modelName)) {
41 return modelName.substring(modelName.indexOf('-') + 1)
42 } else {
43 return modelName
44 }
45}
46
47export function modelNameToValue(modelName) {
48 if (modelName in Models) return Models[modelName].value

Callers 4

modelNameToDescFunction · 0.85
modelNameToValueFunction · 0.85
modelNameToApiModeFunction · 0.85

Calls 1

isCustomModelNameFunction · 0.85

Tested by

no test coverage detected