MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / resolveInjectionModel

Function resolveInjectionModel

src/workspaces/credential-injection.ts:83–85  ·  view source on GitHub ↗
(cred: Pick<Credential, 'vendor' | 'lastModel'>)

Source from the content-addressed store, hash-verified

81 * single resolution point shared by quick-chat injection.
82 */
83export function resolveInjectionModel(cred: Pick<Credential, 'vendor' | 'lastModel'>): string | null {
84 return cred.lastModel ?? DEFAULT_MODEL_BY_VENDOR[cred.vendor] ?? null
85}
86
87/** Pick the wire an agent should use from a credential's capabilities (null = none compatible). */
88export function pickAgentWire(

Callers 2

injectableCredentialsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected