fmt(js): npm run fix on merge (#67771)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
nousbot-eng 2026-07-19 20:06:43 -04:00 committed by GitHub
parent 3d97893571
commit a7d7c02cb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 13 deletions

View file

@ -73,10 +73,7 @@ function toPayload(form: EndpointForm): CustomEndpointUpdate {
}
}
export function CustomEndpointsSettings({
onConfigSaved,
onMainModelChanged
}: CustomEndpointsSettingsProps) {
export function CustomEndpointsSettings({ onConfigSaved, onMainModelChanged }: CustomEndpointsSettingsProps) {
const [loading, setLoading] = useState(true)
const [saving, setSaving] = useState(false)
const [testing, setTesting] = useState(false)
@ -164,7 +161,9 @@ export function CustomEndpointsSettings({
notify({
kind: 'success',
message: response.models.length ? `Endpoint is reachable. Found ${response.models.length} models.` : 'Endpoint is reachable.'
message: response.models.length
? `Endpoint is reachable. Found ${response.models.length} models.`
: 'Endpoint is reachable.'
})
} else {
notify({
@ -252,7 +251,9 @@ export function CustomEndpointsSettings({
)}
{endpoint.source === 'direct-config' && <Pill>config.yaml</Pill>}
</div>
<div className="mt-1 truncate font-mono text-[0.7rem] text-muted-foreground">{endpoint.base_url}</div>
<div className="mt-1 truncate font-mono text-[0.7rem] text-muted-foreground">
{endpoint.base_url}
</div>
<div className="mt-1 flex flex-wrap gap-2 text-xs text-muted-foreground">
<span>{endpoint.model}</span>
{endpoint.has_api_key && <span>{endpoint.api_key_preview ?? 'API key set'}</span>}
@ -369,7 +370,11 @@ export function CustomEndpointsSettings({
</label>
</div>
<div className="flex flex-wrap gap-2">
<Button disabled={testing || !form.baseUrl.trim()} onClick={() => void handleValidate()} variant="outline">
<Button
disabled={testing || !form.baseUrl.trim()}
onClick={() => void handleValidate()}
variant="outline"
>
{testing ? <Loader2 className="animate-spin" /> : <Zap />}
Test
</Button>

View file

@ -491,12 +491,7 @@ export function ProvidersSettings({
}
if (view === 'custom-endpoints') {
return (
<CustomEndpointsSettings
onConfigSaved={onConfigSaved}
onMainModelChanged={onMainModelChanged}
/>
)
return <CustomEndpointsSettings onConfigSaved={onConfigSaved} onMainModelChanged={onMainModelChanged} />
}
return (