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

Function getModelValue

src/utils/model-name-convert.mjs:53–58  ·  view source on GitHub ↗
(configOrSession)

Source from the content-addressed store, hash-verified

51}
52
53export function getModelValue(configOrSession) {
54 let value
55 if (configOrSession.apiMode) value = modelNameToValue(apiModeToModelName(configOrSession.apiMode))
56 else value = modelNameToValue(configOrSession.modelName)
57 return value
58}
59
60export function isCustomModelName(modelName) {
61 return modelName ? modelName.includes('-') : false

Calls 2

modelNameToValueFunction · 0.85
apiModeToModelNameFunction · 0.85

Tested by

no test coverage detected