fix: use 'provider' argument name to match Rust command signature
All checks were successful
Test / frontend-tests (pull_request) Successful in 1m2s
Test / frontend-typecheck (pull_request) Successful in 1m10s
Test / rust-fmt-check (pull_request) Successful in 2m22s
Test / rust-clippy (pull_request) Successful in 18m48s
Test / rust-tests (pull_request) Successful in 20m4s
All checks were successful
Test / frontend-tests (pull_request) Successful in 1m2s
Test / frontend-typecheck (pull_request) Successful in 1m10s
Test / rust-fmt-check (pull_request) Successful in 2m22s
Test / rust-clippy (pull_request) Successful in 18m48s
Test / rust-tests (pull_request) Successful in 20m4s
- Update saveAiProviderCmd to pass { provider: config } instead of { config }
The Rust command expects 'provider' parameter, but frontend was sending 'config'.
This mismatch caused 'invalid args provider for command save_ai_provider' error.
This commit is contained in:
parent
b3765aa65d
commit
b6e68be959
@ -466,7 +466,7 @@ export const getAllIntegrationConfigsCmd = () =>
|
||||
// ─── AI Provider Configuration ────────────────────────────────────────────────
|
||||
|
||||
export const saveAiProviderCmd = (config: ProviderConfig) =>
|
||||
invoke<void>("save_ai_provider", { config });
|
||||
invoke<void>("save_ai_provider", { provider: config });
|
||||
|
||||
export const loadAiProvidersCmd = () =>
|
||||
invoke<ProviderConfig[]>("load_ai_providers");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user