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

Function getExplicitlyDefinedModels

common/src/util/model-utils.ts:7–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5let explicitlyDefinedModels: Set<string> | null = null
6
7function getExplicitlyDefinedModels(): Set<string> {
8 if (explicitlyDefinedModels === null) {
9 // NOTE: Inline require() avoids circular dependency - old-constants imports this
10 // module, so a top-level import would create a circular reference
11 const { models } = require('../old-constants')
12 explicitlyDefinedModels = new Set(Object.values(models) as string[])
13 }
14 return explicitlyDefinedModels
15}
16
17/**
18 * Check if a model is explicitly defined in the models constant object.

Callers 1

isExplicitlyDefinedModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected