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

Function fetchModelsData

frontend/src/Redux/actions.ts:137–149  ·  view source on GitHub ↗
(limit: number)

Source from the content-addressed store, hash-verified

135 };
136};
137export const fetchModelsData = (limit: number) => {
138 return (dispatch: any) => {
139 const project_base_url = 'api/v1'
140 dispatch(fetchModelRequest());
141 request.get(`${project_base_url}/models?limit=${limit}`)
142 .then(response => {
143 dispatch(fetchModelSuccess(response));
144 })
145 .catch(error => {
146 dispatch(fetchModelFailure(error.message));
147 });
148 };
149};
150export const fetchApikeysData = (limit: number) => {
151 return (dispatch: any) => {
152 const project_base_url = 'api/v1'

Callers 8

handleDeleteConfirmFunction · 0.90
handleConfirmFunction · 0.90
fetchData1Function · 0.90
fetchModelsListFunction · 0.90
fetchModelsListFunction · 0.90
fetchModelsListFunction · 0.90
fetchModelsListFunction · 0.90
ProjectHomeFunction · 0.90

Calls 4

fetchModelRequestFunction · 0.85
fetchModelSuccessFunction · 0.85
fetchModelFailureFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected