Skip to content

The open-source AI voice studio. Clone, dictate, create.

fix(api-client): declare moved + errors on migrateModels response type (#470)

Jamie Pine9d7e4a417e57
diff --git a/app/src/lib/api/client.ts b/app/src/lib/api/client.ts
index dbff4e87..045ea454 100644
--- a/app/src/lib/api/client.ts
+++ b/app/src/lib/api/client.ts
@@ -390,7 +390,9 @@ class ApiClient {
return this.request<{ path: string }>('/models/cache-dir');
}
- async migrateModels(destination: string): Promise<{ source: string; destination: string }> {
+ async migrateModels(
+ destination: string,
+ ): Promise<{ source: string; destination: string; moved: number; errors: string[] }> {
return this.request('/models/migrate', {
method: 'POST',
body: JSON.stringify({ destination }),