mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-06-16 13:34:04 +08:00
436f0e8e42
The Gemini API key, base URL, and model inputs were not syncing with the env editor below due to data source mismatch. The form was using generic hooks (useApiKeyState, useBaseUrlState) that only updated settingsConfig, while the env editor relied on geminiEnv from useGeminiConfigState. Changes: - Use geminiApiKey/geminiBaseUrl from useGeminiConfigState instead of generic hooks - Wrap handlers to maintain bidirectional sync between geminiEnv and settingsConfig - Remove unused handleGeminiBaseUrlChange from useBaseUrlState to avoid naming conflicts Now all Gemini form fields properly sync with the env editor in both directions.
436f0e8e42
ยท
2025-11-19 09:28:53 +08:00
History