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

Function getAiModelsList

frontend/src/axios/models.ts:3–10  ·  view source on GitHub ↗
(offset: number, limit: number, providerId: string, type?: string,)

Source from the content-addressed store, hash-verified

1import { request } from '../utils/index'
2
3const getAiModelsList = async (offset: number, limit: number, providerId: string, type?: string,) => {
4 const project_base_url = `api/v1`
5 if (type) {
6 return await request.get(`${project_base_url}/model_schemas?offset=${offset}&limit=${limit}&type=${type}&provider_id=${providerId}`)
7 } else {
8 return await request.get(`${project_base_url}/model_schemas?offset=${offset}&limit=${limit}&provider_id=${providerId}`)
9 }
10}
11
12const getAiModelsForm = async (id: string) => {
13 const project_base_url = `api/v1`

Callers 3

handleEditFunction · 0.90
fetchAiModelsListFunction · 0.90
handleNext1Function · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected