Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NanmiCoder/cc-haha
/ normalizeModelStringForAPI
Function
normalizeModelStringForAPI
src/utils/model/model.ts:652–654 ·
view source on GitHub ↗
(model: string)
Source
from the content-addressed store, hash-verified
650
}
651
652
export
function
normalizeModelStringForAPI(model: string): string {
653
return
model.replace(/\[(1|2)m\]/gi,
''
)
654
}
Callers
10
run
Function · 0.85
sideQuery
Function · 0.85
call
Function · 0.85
countMessagesTokensWithAPI
Function · 0.85
countTokensViaHaikuFallback
Function · 0.85
executeNonStreamingRequest
Function · 0.85
queryModel
Function · 0.85
paramsFromContext
Function · 0.85
handleProxyRequest
Function · 0.85
testProviderConfig
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected