MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / getModelProviderList

Function getModelProviderList

frontend/src/axios/models.ts:63–70  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

61 return await request.get(`${project_base_url}/models/${id}?include_credentials_schema=true&include_display_credentials=true`)
62}
63const getModelProviderList = async (type: string) => {
64 const project_base_url = `api/v1`
65 if (type) {
66 return await request.get(`${project_base_url}/providers?type=${type}&limit=100`)
67 } else {
68 return await request.get(`${project_base_url}/providers?limit=100`)
69 }
70}
71export { getAiModelsList,getModelSchema, getModelsList, updateModels, deleteModels, createModels, getAiModelsForm, getModelsForm, getModelProviderList }

Callers 1

fetchModelProviderListFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected