feat: Add remote Unsloth server support to Desktop application - #1
feat: Add remote Unsloth server support to Desktop application#1DionJones615 wants to merge 9 commits into
Conversation
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This PR adds remote server support to the Unsloth Desktop application. Users can now connect to a remote backend (e.g., via Cloudflare tunnel or LAN IP) instead of always spawning the local Python sidecar.
Changes:
tauri.conf.jsonto allowhttp:,https:,ws:, andwss:forconnect-src,frame-src, andmedia-src. Addedtauri-plugin-storeto the build.http://127.0.0.1to_TAURI_CORS_ORIGINSinstudio/backend/utils/host_policy.py.api-base.ts: Expanded to support full remote URLs, and exportedgetIsRemoteMode().main.tsx: Added startup hydration of remote connection state fromlocalStorage.authFetchautomatically injects the remote Bearer token ifisRemoteModeis active.ConnectionsTab(connections-tab.tsx) for users to set the server URL and API token, test the connection, and persist the config.use-tauri-backend.tssostart_managed_serveris skipped when the remote mode is enabled, saving local memory and VRAM.npm run lintformat errors.Tests and linters pass successfully.
PR created automatically by Jules for task 5409692007600219446 started by @DionJones615