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

Function getModelConfig

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

Source from the content-addressed store, hash-verified

61}
62
63const getModelConfig = async (category: MODEL_TYPE, name: string) => {
64 const models = await getRawModelFile()
65
66 const categoryModels = models[category]
67 return categoryModels.find((model: INodeOptionsValue) => model.name === name)
68}
69
70export const getModelConfigByModelName = async (category: MODEL_TYPE, provider: string | undefined, name: string | undefined) => {
71 const models = await getRawModelFile()

Callers 2

getModelsFunction · 0.85
getRegionsFunction · 0.85

Calls 1

getRawModelFileFunction · 0.85

Tested by

no test coverage detected