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

Function isChatGptOAuthModelAllowed

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

Source from the content-addressed store, hash-verified

55 * Check if model is in the explicit ChatGPT OAuth allowlist.
56 */
57export function isChatGptOAuthModelAllowed(model: string): boolean {
58 return model in OPENROUTER_TO_OPENAI_MODEL_MAP
59}
60
61/**
62 * Normalize OpenRouter-style model IDs to direct OpenAI model IDs.

Callers 1

getModelForRequestFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected