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

Function modelNameToValue

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

Source from the content-addressed store, hash-verified

45}
46
47export function modelNameToValue(modelName) {
48 if (modelName in Models) return Models[modelName].value
49
50 return modelNameToCustomPart(modelName)
51}
52
53export function getModelValue(configOrSession) {
54 let value

Callers 2

getModelValueFunction · 0.85

Calls 1

modelNameToCustomPartFunction · 0.85

Tested by

no test coverage detected