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

Function getRegions

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

Source from the content-addressed store, hash-verified

99}
100
101export const getRegions = async (category: MODEL_TYPE, name: string) => {
102 const returnData: INodeOptionsValue[] = []
103 try {
104 const modelConfig = await getModelConfig(category, name)
105 returnData.push(...modelConfig.regions)
106 return returnData
107 } catch (e) {
108 throw new Error(`Error: getRegions - ${e}`)
109 }
110}

Callers 9

listRegionsMethod · 0.90
listRegionsMethod · 0.90
listRegionsMethod · 0.90
listRegionsMethod · 0.90
listRegionsMethod · 0.90
listRegionsMethod · 0.90
listRegionsMethod · 0.90
listRegionsMethod · 0.90
listRegionsMethod · 0.90

Calls 1

getModelConfigFunction · 0.85

Tested by

no test coverage detected