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

Function getModels

packages/components/src/modelLoader.ts:90–99  ·  view source on GitHub ↗
(category: MODEL_TYPE, name: string)

Source from the content-addressed store, hash-verified

88}
89
90export const getModels = async (category: MODEL_TYPE, name: string) => {
91 const returnData: INodeOptionsValue[] = []
92 try {
93 const modelConfig = await getModelConfig(category, name)
94 returnData.push(...modelConfig.models)
95 return returnData
96 } catch (e) {
97 throw new Error(`Error: getModels - ${e}`)
98 }
99}
100
101export const getRegions = async (category: MODEL_TYPE, name: string) => {
102 const returnData: INodeOptionsValue[] = []

Callers 15

listModelsMethod · 0.90
listModelsMethod · 0.90
listModelsMethod · 0.90
listModelsMethod · 0.90
listModelsMethod · 0.90
listModelsMethod · 0.90
listModelsMethod · 0.90
listModelsMethod · 0.90
listModelsMethod · 0.90
listModelsMethod · 0.90
listModelsMethod · 0.90
listModelsMethod · 0.90

Calls 1

getModelConfigFunction · 0.85

Tested by

no test coverage detected