mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
updated endpoint types
This commit is contained in:
parent
5ad048a161
commit
004bca5c42
@ -71,6 +71,9 @@ export type ScanFolderResponse =
|
|||||||
paths['/api/v2/models/scan_folder']['get']['responses']['200']['content']['application/json'];
|
paths['/api/v2/models/scan_folder']['get']['responses']['200']['content']['application/json'];
|
||||||
type ScanFolderArg = operations['scan_for_models']['parameters']['query'];
|
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'];
|
type GetByAttrsArg = operations['get_model_records_by_attrs']['parameters']['query'];
|
||||||
|
|
||||||
const mainModelsAdapter = createEntityAdapter<MainModelConfig, string>({
|
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) => {
|
query: (hugging_face_repo) => {
|
||||||
return {
|
return {
|
||||||
url: buildModelsUrl(`hugging_face?hugging_face_repo=${hugging_face_repo}`),
|
url: buildModelsUrl(`hugging_face?hugging_face_repo=${hugging_face_repo}`),
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user