mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
added hf models import tab and route for getting available hf models
This commit is contained in:
committed by
psychedelicious
parent
efea1a8a7d
commit
f7cd3cf1f4
@@ -258,6 +258,13 @@ export const modelsApi = api.injectEndpoints({
|
||||
};
|
||||
},
|
||||
}),
|
||||
getHuggingFaceModels: build.query<string[], string>({
|
||||
query: (hugging_face_repo) => {
|
||||
return {
|
||||
url: buildModelsUrl(`hugging_face?hugging_face_repo=${hugging_face_repo}`),
|
||||
};
|
||||
},
|
||||
}),
|
||||
listModelInstalls: build.query<ListModelInstallsResponse, void>({
|
||||
query: () => {
|
||||
return {
|
||||
@@ -381,6 +388,7 @@ export const {
|
||||
useConvertModelMutation,
|
||||
useSyncModelsMutation,
|
||||
useLazyScanFolderQuery,
|
||||
useLazyGetHuggingFaceModelsQuery,
|
||||
useListModelInstallsQuery,
|
||||
useCancelModelInstallMutation,
|
||||
usePruneCompletedModelInstallsMutation,
|
||||
|
||||
Reference in New Issue
Block a user