mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-12 22:42:13 +02:00
refactor: update configuration names from "Auto (Load Balanced)" to "Auto (Fastest)" across multiple components for consistency and clarity
This commit is contained in:
parent
f1ce17bde4
commit
bb4ed3cac6
9 changed files with 15 additions and 15 deletions
|
|
@ -108,7 +108,7 @@ class AgentConfig:
|
||||||
use_default_system_instructions=True,
|
use_default_system_instructions=True,
|
||||||
citations_enabled=True,
|
citations_enabled=True,
|
||||||
config_id=AUTO_MODE_ID,
|
config_id=AUTO_MODE_ID,
|
||||||
config_name="Auto (Load Balanced)",
|
config_name="Auto (Fastest)",
|
||||||
is_auto_mode=True,
|
is_auto_mode=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ def _get_global_image_gen_config(config_id: int) -> dict | None:
|
||||||
if config_id == IMAGE_GEN_AUTO_MODE_ID:
|
if config_id == IMAGE_GEN_AUTO_MODE_ID:
|
||||||
return {
|
return {
|
||||||
"id": IMAGE_GEN_AUTO_MODE_ID,
|
"id": IMAGE_GEN_AUTO_MODE_ID,
|
||||||
"name": "Auto (Load Balanced)",
|
"name": "Auto (Fastest)",
|
||||||
"provider": "AUTO",
|
"provider": "AUTO",
|
||||||
"model_name": "auto",
|
"model_name": "auto",
|
||||||
"is_auto_mode": True,
|
"is_auto_mode": True,
|
||||||
|
|
@ -215,7 +215,7 @@ async def get_global_image_gen_configs(
|
||||||
safe_configs.append(
|
safe_configs.append(
|
||||||
{
|
{
|
||||||
"id": 0,
|
"id": 0,
|
||||||
"name": "Auto (Load Balanced)",
|
"name": "Auto (Fastest)",
|
||||||
"description": "Automatically routes across available image generation providers.",
|
"description": "Automatically routes across available image generation providers.",
|
||||||
"provider": "AUTO",
|
"provider": "AUTO",
|
||||||
"custom_provider": None,
|
"custom_provider": None,
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ async def get_global_new_llm_configs(
|
||||||
safe_configs.append(
|
safe_configs.append(
|
||||||
{
|
{
|
||||||
"id": 0,
|
"id": 0,
|
||||||
"name": "Auto (Load Balanced)",
|
"name": "Auto (Fastest)",
|
||||||
"description": "Automatically routes requests across available LLM providers for optimal performance and rate limit handling. Recommended for most users.",
|
"description": "Automatically routes requests across available LLM providers for optimal performance and rate limit handling. Recommended for most users.",
|
||||||
"provider": "AUTO",
|
"provider": "AUTO",
|
||||||
"custom_provider": None,
|
"custom_provider": None,
|
||||||
|
|
|
||||||
|
|
@ -324,7 +324,7 @@ async def _get_llm_config_by_id(
|
||||||
if config_id == 0:
|
if config_id == 0:
|
||||||
return {
|
return {
|
||||||
"id": 0,
|
"id": 0,
|
||||||
"name": "Auto (Load Balanced)",
|
"name": "Auto (Fastest)",
|
||||||
"description": "Automatically routes requests across available LLM providers for optimal performance and rate limit handling",
|
"description": "Automatically routes requests across available LLM providers for optimal performance and rate limit handling",
|
||||||
"provider": "AUTO",
|
"provider": "AUTO",
|
||||||
"custom_provider": None,
|
"custom_provider": None,
|
||||||
|
|
@ -402,7 +402,7 @@ async def _get_image_gen_config_by_id(
|
||||||
if config_id == 0:
|
if config_id == 0:
|
||||||
return {
|
return {
|
||||||
"id": 0,
|
"id": 0,
|
||||||
"name": "Auto (Load Balanced)",
|
"name": "Auto (Fastest)",
|
||||||
"description": "Automatically routes requests across available image generation providers",
|
"description": "Automatically routes requests across available image generation providers",
|
||||||
"provider": "AUTO",
|
"provider": "AUTO",
|
||||||
"model_name": "auto",
|
"model_name": "auto",
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ def get_global_llm_config(llm_config_id: int) -> dict | None:
|
||||||
if llm_config_id == AUTO_MODE_ID:
|
if llm_config_id == AUTO_MODE_ID:
|
||||||
return {
|
return {
|
||||||
"id": AUTO_MODE_ID,
|
"id": AUTO_MODE_ID,
|
||||||
"name": "Auto (Load Balanced)",
|
"name": "Auto (Fastest)",
|
||||||
"description": "Automatically routes requests across available LLM providers for optimal performance and rate limit handling",
|
"description": "Automatically routes requests across available LLM providers for optimal performance and rate limit handling",
|
||||||
"provider": "AUTO",
|
"provider": "AUTO",
|
||||||
"model_name": "auto",
|
"model_name": "auto",
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ export function ImageConfigSidebar({
|
||||||
|
|
||||||
const getTitle = () => {
|
const getTitle = () => {
|
||||||
if (mode === "create") return "Add Image Model";
|
if (mode === "create") return "Add Image Model";
|
||||||
if (isAutoMode) return "Auto Mode (Load Balanced)";
|
if (isAutoMode) return "Auto Mode (Fastest)";
|
||||||
if (isGlobal) return "View Global Image Model";
|
if (isGlobal) return "View Global Image Model";
|
||||||
return "Edit Image Model";
|
return "Edit Image Model";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ export function ModelConfigSidebar({
|
||||||
// Get title based on mode
|
// Get title based on mode
|
||||||
const getTitle = () => {
|
const getTitle = () => {
|
||||||
if (mode === "create") return "Add New Configuration";
|
if (mode === "create") return "Add New Configuration";
|
||||||
if (isAutoMode) return "Auto Mode (Load Balanced)";
|
if (isAutoMode) return "Auto Mode (Fastest)";
|
||||||
if (isGlobal) return "View Global Configuration";
|
if (isGlobal) return "View Global Configuration";
|
||||||
return "Edit Configuration";
|
return "Edit Configuration";
|
||||||
};
|
};
|
||||||
|
|
@ -307,7 +307,7 @@ export function ModelConfigSidebar({
|
||||||
<Zap className="size-4 text-violet-600 dark:text-violet-400 mt-0.5 shrink-0" />
|
<Zap className="size-4 text-violet-600 dark:text-violet-400 mt-0.5 shrink-0" />
|
||||||
<div>
|
<div>
|
||||||
<p className="text-sm font-medium text-violet-900 dark:text-violet-100">
|
<p className="text-sm font-medium text-violet-900 dark:text-violet-100">
|
||||||
Automatic Load Balancing
|
Automatic (Fastest)
|
||||||
</p>
|
</p>
|
||||||
<p className="text-xs text-violet-700 dark:text-violet-300">
|
<p className="text-xs text-violet-700 dark:text-violet-300">
|
||||||
Distributes requests across all configured LLM providers
|
Distributes requests across all configured LLM providers
|
||||||
|
|
|
||||||
|
|
@ -293,14 +293,14 @@ export function ModelSelector({
|
||||||
<TabsList className="w-full grid grid-cols-2 rounded-none rounded-t-lg bg-card h-11 p-0 gap-0">
|
<TabsList className="w-full grid grid-cols-2 rounded-none rounded-t-lg bg-card h-11 p-0 gap-0">
|
||||||
<TabsTrigger
|
<TabsTrigger
|
||||||
value="llm"
|
value="llm"
|
||||||
className="relative gap-2 text-sm font-medium rounded-none text-muted-foreground/60 transition-all duration-200 h-full data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:shadow-none data-[state=active]:after:absolute data-[state=active]:after:bottom-0 data-[state=active]:after:left-3 data-[state=active]:after:right-3 data-[state=active]:after:h-[2px] data-[state=active]:after:bg-gray-500 data-[state=active]:after:rounded-full"
|
className="relative gap-2 text-sm font-medium rounded-none text-muted-foreground/60 transition-all duration-200 h-full data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:shadow-none data-[state=active]:after:absolute data-[state=active]:after:bottom-0 data-[state=active]:after:left-3 data-[state=active]:after:right-3 data-[state=active]:after:h-[2px] data-[state=active]:after:bg-white data-[state=active]:after:rounded-full"
|
||||||
>
|
>
|
||||||
<Zap className="size-4" />
|
<Zap className="size-4" />
|
||||||
LLM
|
LLM
|
||||||
</TabsTrigger>
|
</TabsTrigger>
|
||||||
<TabsTrigger
|
<TabsTrigger
|
||||||
value="image"
|
value="image"
|
||||||
className="relative gap-2 text-sm font-medium rounded-none text-muted-foreground/60 transition-all duration-200 h-full data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:shadow-none data-[state=active]:after:absolute data-[state=active]:after:bottom-0 data-[state=active]:after:left-3 data-[state=active]:after:right-3 data-[state=active]:after:h-[2px] data-[state=active]:after:bg-gray-500 data-[state=active]:after:rounded-full"
|
className="relative gap-2 text-sm font-medium rounded-none text-muted-foreground/60 transition-all duration-200 h-full data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:shadow-none data-[state=active]:after:absolute data-[state=active]:after:bottom-0 data-[state=active]:after:left-3 data-[state=active]:after:right-3 data-[state=active]:after:h-[2px] data-[state=active]:after:bg-white data-[state=active]:after:rounded-full"
|
||||||
>
|
>
|
||||||
<ImageIcon className="size-4" />
|
<ImageIcon className="size-4" />
|
||||||
Image
|
Image
|
||||||
|
|
@ -377,7 +377,7 @@ export function ModelSelector({
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-1.5 mt-0.5">
|
<div className="flex items-center gap-1.5 mt-0.5">
|
||||||
<span className="text-xs text-muted-foreground truncate">
|
<span className="text-xs text-muted-foreground truncate">
|
||||||
{isAutoMode ? "Auto load balancing" : config.model_name}
|
{isAutoMode ? "Auto Mode" : config.model_name}
|
||||||
</span>
|
</span>
|
||||||
{!isAutoMode && config.citations_enabled && (
|
{!isAutoMode && config.citations_enabled && (
|
||||||
<Badge
|
<Badge
|
||||||
|
|
@ -551,7 +551,7 @@ export function ModelSelector({
|
||||||
{isSelected && <Check className="size-3.5 text-primary shrink-0" />}
|
{isSelected && <Check className="size-3.5 text-primary shrink-0" />}
|
||||||
</div>
|
</div>
|
||||||
<span className="text-xs text-muted-foreground truncate block">
|
<span className="text-xs text-muted-foreground truncate block">
|
||||||
{isAuto ? "Auto load balancing" : config.model_name}
|
{isAuto ? "Auto Mode" : config.model_name}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{onEditImage && !isAuto && (
|
{onEditImage && !isAuto && (
|
||||||
|
|
|
||||||
|
|
@ -503,7 +503,7 @@ export function LLMRoleManager({ searchSpaceId }: LLMRoleManagerProps) {
|
||||||
/>
|
/>
|
||||||
<div className="min-w-0">
|
<div className="min-w-0">
|
||||||
<p className="text-xs font-medium text-violet-700 dark:text-violet-300">
|
<p className="text-xs font-medium text-violet-700 dark:text-violet-300">
|
||||||
Auto Load Balanced
|
Auto Mode
|
||||||
</p>
|
</p>
|
||||||
<p className="text-[10px] text-violet-600/70 dark:text-violet-400/70 mt-0.5">
|
<p className="text-[10px] text-violet-600/70 dark:text-violet-400/70 mt-0.5">
|
||||||
Routes across all available providers
|
Routes across all available providers
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue