Commit 03a0810
Add Google Gemini provider, environment variable support, and UI modernization (#973)
* Modernize AI provider UI and improve UX
- Clean up UI with CSS classes instead of inline styles
- Add password inputs with Show/Hide toggle for API keys
- Add collapsible "Advanced options" for custom model/URL fields
- Alphabetize provider dropdown (Local at bottom)
- Auto-select default provider based on environment variables
- Add autocomplete="off" to prevent browser password prompts
- Fix optimization target alignment (left-aligned radio/checkbox)
- Streamline model options in dropdowns
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Add dynamic model fetching for OpenAI and Gemini
- Add fetchOpenAIModels() to query /v1/models endpoint
- Add fetchGeminiModels() to query /v1beta/models endpoint
- Add refresh buttons (↻) next to model dropdowns
- Filter models to show only relevant chat/generation models
- Use autocomplete="one-time-code" to prevent browser password prompts
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 0eebcd4 commit 03a0810
5 files changed
Lines changed: 689 additions & 447 deletions
File tree
- scalene/scalene-gui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
26 | 36 | | |
27 | 37 | | |
28 | 38 | | |
| |||
104 | 114 | | |
105 | 115 | | |
106 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
0 commit comments