MCPcopy Create free account
hub / github.com/Noumena-Network/code / getConfiguredMainModelEnv

Function getConfiguredMainModelEnv

src/utils/model/model.ts:45–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43export type ModelSetting = ModelName | ModelAlias | null
44
45function getConfiguredMainModelEnv(): string | undefined {
46 if (isOpenAICompatByokActive()) {
47 return (
48 process.env.OPENAI_MODEL ||
49 process.env.NOUMENA_MODEL ||
50 process.env.ANTHROPIC_MODEL
51 )
52 }
53 return (
54 process.env.NOUMENA_MODEL || process.env.ANTHROPIC_MODEL
55 )
56}
57
58function getConfiguredSmallFastModelEnv(): string | undefined {
59 return (

Callers 1

Calls 1

isOpenAICompatByokActiveFunction · 0.85

Tested by

no test coverage detected