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

Function isCustomModelName

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

Source from the content-addressed store, hash-verified

58}
59
60export function isCustomModelName(modelName) {
61 return modelName ? modelName.includes('-') : false
62}
63
64export function modelNameToApiMode(modelName) {
65 const presetPart = modelNameToPresetPart(modelName)

Callers 5

modelNameToDescFunction · 0.85
modelNameToPresetPartFunction · 0.85
modelNameToCustomPartFunction · 0.85
modelNameToApiModeFunction · 0.85
isUsingModelNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected