@@ -94,9 +94,9 @@ function SettingsDialog({ settings, setSettings, openDialog, setOpenDialog }: Pr
9494 < span className = "mr-2" > OpenAI</ span >
9595 < RadioGroupItem value = "openai" id = "openai-llm" />
9696 </ Label >
97- < Label className = "flex item-center" htmlFor = "gemini -llm" >
98- < span className = "mr-2" > Gemini </ span >
99- < RadioGroupItem value = "gemini " id = "gemini -llm" />
97+ < Label className = "flex item-center" htmlFor = "Anthropic -llm" >
98+ < span className = "mr-2" > Anthropic </ span >
99+ < RadioGroupItem value = "anthropic " id = "Anthropic -llm" />
100100 </ Label >
101101 </ RadioGroup >
102102 </ div >
@@ -149,26 +149,48 @@ function SettingsDialog({ settings, setSettings, openDialog, setOpenDialog }: Pr
149149
150150 ) : (
151151 < >
152- < p className = "text-rose-500" > The output effect is not good and it will not be maintained for the time being.</ p >
153- < Label htmlFor = "openai-api-key" >
154- < div > Gemini API key</ div >
155- < div className = "font-light mt-2 leading-relaxed" >
156- Only stored in your browser. Never stored on servers. Overrides
157- your .env config.
158- </ div >
159- </ Label >
152+ < Label htmlFor = "Anthropic-api-key" >
153+ < div > Anthropic API key</ div >
154+ < div className = "font-light mt-2 leading-relaxed" >
155+ Only stored in your browser. Never stored on servers. Overrides
156+ your .env config.
157+ < button
158+ className = "inline-flex items-center justify-center ml-2" >
159+ < OnboardingNote />
160+ </ button >
161+ </ div >
162+ </ Label >
160163
161- < Input
162- id = "Gemini-api-key"
163- placeholder = "Gemini API key"
164- value = { settings ?. geminiApiKey || "" }
165- onChange = { ( e ) =>
166- setSettings ( {
167- ...settings ,
168- geminiApiKey : e . target . value ,
169- } )
170- }
171- />
164+ < Input
165+ id = "anthropic-api-key"
166+ placeholder = "Anthropic API key"
167+ value = { settings ?. anthropicApiKey || "" }
168+ onChange = { ( e ) =>
169+ setSettings ( {
170+ ...settings ,
171+ anthropicApiKey : e . target . value ,
172+ } )
173+ }
174+ />
175+
176+ < Label htmlFor = "anthropic-api-key" >
177+ < div > Anthropic Base URL (optional)</ div >
178+ < div className = "font-light mt-2 leading-relaxed" >
179+ Replace with a proxy URL if you don't want to use the default.
180+ </ div >
181+ </ Label >
182+
183+ < Input
184+ id = "anthropic-base-url"
185+ placeholder = "Anthropic Base URL"
186+ value = { settings ?. anthropicBaseURL || "" }
187+ onChange = { ( e ) =>
188+ setSettings ( {
189+ ...settings ,
190+ anthropicBaseURL : e . target . value ,
191+ } )
192+ }
193+ />
172194 </ >
173195 )
174196 }
0 commit comments