Refactor useGenerationForm to streamline model download handling

- Removed unnecessary isDownloading variable and related logic.
- Consolidated model download state reset to the finally block for improved clarity and reliability.
- Enhanced error handling by ensuring model download state is reset in case of failure.
This commit is contained in:
Jamie Pine
2026-01-29 20:17:55 -08:00
parent 4ff775bc98
commit b39f48cc81
4 changed files with 38 additions and 9 deletions
+2
View File
@@ -4,6 +4,8 @@
"private": true,
"scripts": {
"dev": "mintlify dev",
"build": "mintlify build",
"start": "mintlify serve",
"install:mintlify": "bun add -g mintlify"
},
"devDependencies": {