MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / getSecondaryModel

Function getSecondaryModel

lib/queryLLM.ts:356–367  ·  view source on GitHub ↗
(mainModel: string)

Source from the content-addressed store, hash-verified

354};
355
356export function getSecondaryModel(mainModel: string): string {
357 if (mainModel in baseSecondaryModelMapping) {
358 // @ts-ignore
359 return baseSecondaryModelMapping[mainModel];
360 } else if (isOSModel(mainModel)) {
361 // Use OS model as secondary if primary model is OS
362 return mainModel;
363 } else {
364 // Default for fine-tuned models
365 return "gpt-3.5-turbo-0125";
366 }
367}
368
369export async function queryEmbedding(
370 textToEmbed: string | string[],

Callers 3

handlerFunction · 0.90
getMockedPropertiesFunction · 0.90
summarizeTextFunction · 0.90

Calls 1

isOSModelFunction · 0.85

Tested by

no test coverage detected