(categoryModels: any, provider: string | undefined, name: string | undefined)
| 75 | } |
| 76 | |
| 77 | const getSpecificModelFromCategory = (categoryModels: any, provider: string | undefined, name: string | undefined) => { |
| 78 | for (const cm of categoryModels) { |
| 79 | if (cm.models && cm.name.toLowerCase() === provider?.toLowerCase()) { |
| 80 | for (const m of cm.models) { |
| 81 | if (m.name === name) { |
| 82 | return m |
| 83 | } |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | return undefined |
| 88 | } |
| 89 | |
| 90 | export const getModels = async (category: MODEL_TYPE, name: string) => { |
| 91 | const returnData: INodeOptionsValue[] = [] |
no outgoing calls
no test coverage detected