fix(ui): fix metadata route

This commit is contained in:
psychedelicious 2024-02-24 17:43:14 +11:00
parent 1d410e6346
commit 4420392241

View File

@ -27,7 +27,7 @@ type UpdateModelResponse = paths['/api/v2/models/i/{key}']['patch']['responses']
type GetModelConfigResponse = paths['/api/v2/models/i/{key}']['get']['responses']['200']['content']['application/json']; type GetModelConfigResponse = paths['/api/v2/models/i/{key}']['get']['responses']['200']['content']['application/json'];
type GetModelMetadataResponse = type GetModelMetadataResponse =
paths['/api/v2/models/i/{key}/meta']['get']['responses']['200']['content']['application/json']; paths['/api/v2/models/i/{key}/metadata']['get']['responses']['200']['content']['application/json'];
type ListModelsArg = NonNullable<paths['/api/v2/models/']['get']['parameters']['query']>; type ListModelsArg = NonNullable<paths['/api/v2/models/']['get']['parameters']['query']>;
@ -150,7 +150,7 @@ export const modelsApi = api.injectEndpoints({
}), }),
getModelMetadata: build.query<GetModelMetadataResponse, string>({ getModelMetadata: build.query<GetModelMetadataResponse, string>({
query: (key) => { query: (key) => {
return buildModelsUrl(`i/${key}/meta`); return buildModelsUrl(`i/${key}/metadata`);
}, },
providesTags: ['Model'], providesTags: ['Model'],
}), }),