mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix metadata route
This commit is contained in:
parent
72fb1cefff
commit
a5dba4b0d9
@ -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 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']>;
|
||||
|
||||
@ -150,7 +150,7 @@ export const modelsApi = api.injectEndpoints({
|
||||
}),
|
||||
getModelMetadata: build.query<GetModelMetadataResponse, string>({
|
||||
query: (key) => {
|
||||
return buildModelsUrl(`i/${key}/meta`);
|
||||
return buildModelsUrl(`i/${key}/metadata`);
|
||||
},
|
||||
providesTags: ['Model'],
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user