updated endpoint types

This commit is contained in:
Jennifer Player 2024-03-11 11:48:45 -04:00 committed by psychedelicious
parent 5ad048a161
commit 004bca5c42
2 changed files with 37 additions and 3 deletions

View File

@ -71,6 +71,9 @@ export type ScanFolderResponse =
paths['/api/v2/models/scan_folder']['get']['responses']['200']['content']['application/json'];
type ScanFolderArg = operations['scan_for_models']['parameters']['query'];
type GetHuggingFaceModelsResponse =
paths['/api/v2/models/hugging_face']['get']['responses']['200']['content']['application/json'];
type GetByAttrsArg = operations['get_model_records_by_attrs']['parameters']['query'];
const mainModelsAdapter = createEntityAdapter<MainModelConfig, string>({
@ -258,7 +261,7 @@ export const modelsApi = api.injectEndpoints({
};
},
}),
getHuggingFaceModels: build.query<string[], string>({
getHuggingFaceModels: build.query<GetHuggingFaceModelsResponse, string>({
query: (hugging_face_repo) => {
return {
url: buildModelsUrl(`hugging_face?hugging_face_repo=${hugging_face_repo}`),

File diff suppressed because one or more lines are too long