mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 13:33:48 +08:00
Fix: delete base url default value in FunASR (#17596)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
// {
|
||||
|
||||
@@ -244,6 +244,7 @@ export const useProviderFields = ({
|
||||
onChange={(value) => fieldProps.onChange(value)}
|
||||
options={inputSelectOptions as any}
|
||||
placeholder={placeholderText}
|
||||
autoComplete={field.autoComplete}
|
||||
/>
|
||||
) : (
|
||||
<Input
|
||||
|
||||
Reference in New Issue
Block a user