MCPcopy Index your code
hub / github.com/Noumena-Network/code / modelOptionsReferToSameModel

Function modelOptionsReferToSameModel

src/utils/model/modelOptions.ts:86–95  ·  view source on GitHub ↗
(
  a: ModelSetting,
  b: ModelSetting,
)

Source from the content-addressed store, hash-verified

84}
85
86export function modelOptionsReferToSameModel(
87 a: ModelSetting,
88 b: ModelSetting,
89): boolean {
90 if (a === b) return true
91 if (typeof a !== 'string' || typeof b !== 'string') return false
92 const aProfile = resolveNCodeManagedModel(a)
93 const bProfile = resolveNCodeManagedModel(b)
94 return Boolean(aProfile && bProfile && aProfile.model === bProfile.model)
95}
96
97export function getDefaultOptionForUser(fastMode = false): ModelOption {
98 const session = getCurrentSubscriptionSessionState()

Callers 2

ModelPickerFunction · 0.85
getModelOptionsFunction · 0.85

Calls 1

resolveNCodeManagedModelFunction · 0.85

Tested by

no test coverage detected