(category: MODEL_TYPE, name: string)
| 88 | } |
| 89 | |
| 90 | export 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 | |
| 101 | export const getRegions = async (category: MODEL_TYPE, name: string) => { |
| 102 | const returnData: INodeOptionsValue[] = [] |
no test coverage detected