Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: restore xinference secret field (#6941)
liuzhenghua141e4e027618
diff --git a/api/core/model_runtime/model_providers/xinference/xinference.yaml b/api/core/model_runtime/model_providers/xinference/xinference.yamlindex aca076b6e1a..be9073c1cab 100644--- a/api/core/model_runtime/model_providers/xinference/xinference.yaml+++ b/api/core/model_runtime/model_providers/xinference/xinference.yaml@@ -33,7 +33,7 @@ model_credential_schema:label:zh_Hans: 服务器URLen_US: Server url- type: text-input+ type: secret-inputrequired: trueplaceholder:zh_Hans: 在此输入Xinference的服务器地址,如 http://192.168.1.100:9997@@ -51,7 +51,7 @@ model_credential_schema:label:zh_Hans: API密钥en_US: API key- type: text-input+ type: secret-inputrequired: falseplaceholder:zh_Hans: 在此输入您的API密钥diff --git a/web/app/components/header/account-setting/model-provider-page/model-modal/Form.tsx b/web/app/components/header/account-setting/model-provider-page/model-modal/Form.tsxindex c93c41eba29..6bf7f389fc2 100644--- a/web/app/components/header/account-setting/model-provider-page/model-modal/Form.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-modal/Form.tsx@@ -114,7 +114,7 @@ const Form: FC<FormProps> = ({validated={validatedSuccess}placeholder={placeholder?.[language] || placeholder?.en_US}disabled={disabed}- type={formSchema.type === FormTypeEnum.textNumber ? 'number' : formSchema.type === FormTypeEnum.secretInput ? 'password' : 'text'}+ type={formSchema.type === FormTypeEnum.textNumber ? 'number' : 'text'}{...(formSchema.type === FormTypeEnum.textNumber ? { min: (formSchema as CredentialFormSchemaNumberInput).min, max: (formSchema as CredentialFormSchemaNumberInput).max } : {})}/>{fieldMoreInfo?.(formSchema)}