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

Function modelNameToPresetPart

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

Source from the content-addressed store, hash-verified

29}
30
31export function modelNameToPresetPart(modelName) {
32 if (isCustomModelName(modelName)) {
33 return modelName.split('-')[0]
34 } else {
35 return modelName
36 }
37}
38
39export function modelNameToCustomPart(modelName) {
40 if (isCustomModelName(modelName)) {

Callers 5

modelNameToDescFunction · 0.85
modelNameToApiModeFunction · 0.85
isUsingModelNameFunction · 0.85
getModelNameGroupFunction · 0.85

Calls 1

isCustomModelNameFunction · 0.85

Tested by

no test coverage detected