MCPcopy Create free account
hub / github.com/code-with-antonio/nightcode / resolveChatModel

Function resolveChatModel

packages/server/src/lib/models.ts:91–98  ·  view source on GitHub ↗
(modelId: string)

Source from the content-addressed store, hash-verified

89};
90
91export function resolveChatModel(modelId: string): ResolvedModel {
92 const model = findSupportedChatModel(modelId);
93 if (!model) {
94 throw new Error(`Unsupported model: ${modelId}`);
95 }
96
97 return resolveSupportedChatModel(model);
98};

Callers 1

chat.tsFile · 0.90

Calls 2

findSupportedChatModelFunction · 0.90

Tested by

no test coverage detected