mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-31 17:15:32 +08:00
### What problem does this PR solve? Fixes: Fixed model provider issues and improved some features - Removed the old login page - Updated model provider icons - Added RAPTOR modification range parameter ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -108,6 +108,7 @@ export const DataSourceFormFields = {
|
||||
name: 'config.prefix',
|
||||
type: FormFieldType.Text,
|
||||
required: false,
|
||||
tooltip: t('setting.s3PrefixTip'),
|
||||
},
|
||||
],
|
||||
[DataSourceKey.NOTION]: [
|
||||
@ -164,16 +165,14 @@ export const DataSourceFormFields = {
|
||||
name: 'config.wiki_base',
|
||||
type: FormFieldType.Text,
|
||||
required: false,
|
||||
tooltip:
|
||||
'The base URL of your Confluence instance (e.g., https://your-domain.atlassian.net/wiki)',
|
||||
tooltip: t('setting.confluenceWikiBaseUrlTip'),
|
||||
},
|
||||
{
|
||||
label: 'Is Cloud',
|
||||
name: 'config.is_cloud',
|
||||
type: FormFieldType.Checkbox,
|
||||
required: false,
|
||||
tooltip:
|
||||
'Check if this is a Confluence Cloud instance, uncheck for Confluence Server/Data Center',
|
||||
tooltip: t('setting.confluenceIsCloudTip'),
|
||||
},
|
||||
],
|
||||
[DataSourceKey.GOOGLE_DRIVE]: [
|
||||
|
||||
@ -45,7 +45,7 @@ export const AvailableModels: FC<{
|
||||
const [selectedTag, setSelectedTag] = useState<string | null>(null);
|
||||
|
||||
const filteredModels = useMemo(() => {
|
||||
return factoryList.filter((model) => {
|
||||
const models = factoryList.filter((model) => {
|
||||
const matchesSearch = model.name
|
||||
.toLowerCase()
|
||||
.includes(searchTerm.toLowerCase());
|
||||
@ -54,6 +54,7 @@ export const AvailableModels: FC<{
|
||||
model.tags.split(',').some((tag) => tag.trim() === selectedTag);
|
||||
return matchesSearch && matchesTag;
|
||||
});
|
||||
return models;
|
||||
}, [factoryList, searchTerm, selectedTag]);
|
||||
|
||||
const allTags = useMemo(() => {
|
||||
@ -124,7 +125,7 @@ export const AvailableModels: FC<{
|
||||
className=" border border-border-default rounded-lg p-3 hover:bg-bg-input transition-colors group"
|
||||
>
|
||||
<div className="flex items-center space-x-3 mb-3">
|
||||
<LlmIcon name={model.name} imgClass="h-8 w-auto" />
|
||||
<LlmIcon name={model.name} imgClass="h-8 w-8 text-text-primary" />
|
||||
<div className="flex-1">
|
||||
<h3 className="font-medium truncate">{model.name}</h3>
|
||||
</div>
|
||||
|
||||
@ -77,11 +77,11 @@ export function SideBar() {
|
||||
)}
|
||||
<span>{item.label}</span>
|
||||
</section>
|
||||
{item.key === Routes.System && (
|
||||
{/* {item.key === Routes.System && (
|
||||
<div className="mr-2 px-2 bg-accent-primary-5 text-accent-primary rounded-md">
|
||||
{version}
|
||||
</div>
|
||||
)}
|
||||
)} */}
|
||||
{/* {active && (
|
||||
<div className="absolute right-0 w-[5px] h-[66px] bg-primary rounded-l-xl shadow-[0_0_5.94px_#7561ff,0_0_11.88px_#7561ff,0_0_41.58px_#7561ff,0_0_83.16px_#7561ff,0_0_142.56px_#7561ff,0_0_249.48px_#7561ff]" />
|
||||
)} */}
|
||||
@ -93,7 +93,10 @@ export function SideBar() {
|
||||
</div>
|
||||
|
||||
<div className="p-6 mt-auto ">
|
||||
<div className="flex items-center gap-2 mb-6 justify-end">
|
||||
<div className="flex items-center gap-2 mb-6 justify-between">
|
||||
<div className="mr-2 px-2 text-accent-primary rounded-md">
|
||||
{version}
|
||||
</div>
|
||||
<ThemeToggle />
|
||||
</div>
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user