MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / extractShortModelName

Function extractShortModelName

web/src/llm-api/openai.ts:122–124  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

120}
121
122function extractShortModelName(model: string): string {
123 return model.startsWith('openai/') ? model.slice('openai/'.length) : model
124}
125
126function buildOpenAIBody(
127 body: ChatCompletionRequestBody,

Callers 2

handleOpenAINonStreamFunction · 0.85
handleOpenAIStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected