MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / getModelConfigByModelName

Function getModelConfigByModelName

packages/components/src/modelLoader.ts:70–75  ·  view source on GitHub ↗
(category: MODEL_TYPE, provider: string | undefined, name: string | undefined)

Source from the content-addressed store, hash-verified

68}
69
70export const getModelConfigByModelName = async (category: MODEL_TYPE, provider: string | undefined, name: string | undefined) => {
71 const models = await getRawModelFile()
72
73 const categoryModels = models[category]
74 return getSpecificModelFromCategory(categoryModels, provider, name)
75}
76
77const getSpecificModelFromCategory = (categoryModels: any, provider: string | undefined, name: string | undefined) => {
78 for (const cm of categoryModels) {

Callers 4

calculateUsageCostMethod · 0.90
calculateUsageCostMethod · 0.90
calculateUsageCostMethod · 0.90
EvaluationRunnerClass · 0.90

Calls 2

getRawModelFileFunction · 0.85

Tested by

no test coverage detected