Fix: delete base url default value in FunASR (#17596)

This commit is contained in:
chanx
2026-07-31 11:24:42 +08:00
committed by GitHub
parent ed05f32fee
commit cd964dd700
3 changed files with 9 additions and 1 deletions

View File

@@ -55,6 +55,8 @@ export interface InputSelectProps {
multi?: boolean;
/** Type of input: text, number, date, or datetime */
type?: 'text' | 'number' | 'date' | 'datetime';
/** Auto-complete attribute for the input */
autoComplete?: string;
}
/** Internal display for single-select selected value. Click label to re-edit (string labels only). */
@@ -123,6 +125,7 @@ const InputSelect = React.forwardRef<HTMLInputElement, InputSelectProps>(
style,
multi = false,
type = 'text',
autoComplete = 'new-password',
},
ref,
) => {
@@ -517,6 +520,7 @@ const InputSelect = React.forwardRef<HTMLInputElement, InputSelectProps>(
onClick={(e) => e.stopPropagation()}
onFocus={handleInputFocus}
onBlur={handleInputBlur}
autoComplete={autoComplete}
/>
)}
</div>

View File

@@ -76,7 +76,8 @@ export const LocalLlmConfigs: Record<string, ProviderConfig> = {
label: 'addLlmBaseUrl',
type: 'inputSelect',
required: true,
defaultValue: 'http://localhost:8000/v1',
defaultValue: '',
autoComplete: 'new-password',
placeholder: 'baseUrlNameMessage',
shouldRender: 'hideWhenInstanceExists',
},
@@ -252,6 +253,7 @@ function buildLocalConfig(
type: 'inputSelect',
required: true,
placeholder: 'baseUrlNameMessage',
autoComplete: 'new-password',
shouldRender: 'hideWhenInstanceExists',
},
{
@@ -260,6 +262,7 @@ function buildLocalConfig(
type: FormFieldType.Password,
required: false,
placeholder: 'apiKeyMessage',
autoComplete: 'new-password',
shouldRender: 'hideWhenInstanceExists',
},
// {

View File

@@ -244,6 +244,7 @@ export const useProviderFields = ({
onChange={(value) => fieldProps.onChange(value)}
options={inputSelectOptions as any}
placeholder={placeholderText}
autoComplete={field.autoComplete}
/>
) : (
<Input