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

Function isOpenAIProviderModel

common/src/constants/chatgpt-oauth.ts:50–52  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

48) as Array<keyof typeof OPENROUTER_TO_OPENAI_MODEL_MAP>
49
50export function isOpenAIProviderModel(model: string): boolean {
51 return model.startsWith('openai/')
52}
53
54/**
55 * Check if model is in the explicit ChatGPT OAuth allowlist.

Callers 2

getModelForRequestFunction · 0.90
countTokensViaAnthropicFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected