fix: 修复 JSX 语法错误
This commit is contained in:
parent
3855cb05cd
commit
7680cbe02e
@ -2593,58 +2593,60 @@ export function AdminSettingsClient() {
|
||||
/>
|
||||
</div>
|
||||
{siteSettings.canvasEnabled && (
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="canvasDefaultModelId">画布默认生图模型</Label>
|
||||
<Select
|
||||
value={siteSettings.canvasDefaultModelId || "auto"}
|
||||
onValueChange={(value) => setSiteSettings({
|
||||
...siteSettings,
|
||||
canvasDefaultModelId: value === "auto" ? null : value
|
||||
})}
|
||||
>
|
||||
<SelectTrigger id="canvasDefaultModelId">
|
||||
<SelectValue placeholder="选择默认模型" />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="auto">智能自动(推荐)</SelectItem>
|
||||
{modelsData?.models?.filter((m: any) => m.supportsImageGen).map((model: any) => (
|
||||
<SelectItem key={model.id} value={model.id}>
|
||||
{model.displayName}
|
||||
</SelectItem>
|
||||
))}
|
||||
</SelectContent>
|
||||
</Select>
|
||||
<div className="text-xs text-muted-foreground">
|
||||
设置无限画布中用户的默认生图模型。"智能自动"会根据用户需求自动选择最佳模型。
|
||||
<>
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="canvasDefaultModelId">画布默认生图模型</Label>
|
||||
<Select
|
||||
value={siteSettings.canvasDefaultModelId || "auto"}
|
||||
onValueChange={(value) => setSiteSettings({
|
||||
...siteSettings,
|
||||
canvasDefaultModelId: value === "auto" ? null : value
|
||||
})}
|
||||
>
|
||||
<SelectTrigger id="canvasDefaultModelId">
|
||||
<SelectValue placeholder="选择默认模型" />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="auto">智能自动(推荐)</SelectItem>
|
||||
{modelsData?.models?.filter((m: any) => m.supportsImageGen).map((model: any) => (
|
||||
<SelectItem key={model.id} value={model.id}>
|
||||
{model.displayName}
|
||||
</SelectItem>
|
||||
))}
|
||||
</SelectContent>
|
||||
</Select>
|
||||
<div className="text-xs text-muted-foreground">
|
||||
设置无限画布中用户的默认生图模型。"智能自动"会根据用户需求自动选择最佳模型。
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 智能自动模式下的默认生图模型 */}
|
||||
<div className="space-y-2 mt-4 pt-4 border-t">
|
||||
<Label htmlFor="canvasAutoModeDefaultModelId">智能自动模式 - 默认生图模型</Label>
|
||||
<Select
|
||||
value={siteSettings.canvasAutoModeDefaultModelId || "system"}
|
||||
onValueChange={(value) => setSiteSettings({
|
||||
...siteSettings,
|
||||
canvasAutoModeDefaultModelId: value === "system" ? null : value
|
||||
})}
|
||||
>
|
||||
<SelectTrigger id="canvasAutoModeDefaultModelId">
|
||||
<SelectValue placeholder="选择默认模型" />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="system">系统智能选择(根据意图路由)</SelectItem>
|
||||
{modelsData?.models?.filter((m: any) => m.supportsImageGen).map((model: any) => (
|
||||
<SelectItem key={model.id} value={model.id}>
|
||||
{model.displayName}
|
||||
</SelectItem>
|
||||
))}
|
||||
</SelectContent>
|
||||
</Select>
|
||||
<div className="text-xs text-muted-foreground">
|
||||
当用户选择"智能自动"模式时,系统实际使用的生图模型。"系统智能选择"会根据用户意图(如抠图、换背景等)自动路由到最佳模型。
|
||||
|
||||
{/* 智能自动模式下的默认生图模型 */}
|
||||
<div className="space-y-2 mt-4 pt-4 border-t">
|
||||
<Label htmlFor="canvasAutoModeDefaultModelId">智能自动模式 - 默认生图模型</Label>
|
||||
<Select
|
||||
value={siteSettings.canvasAutoModeDefaultModelId || "system"}
|
||||
onValueChange={(value) => setSiteSettings({
|
||||
...siteSettings,
|
||||
canvasAutoModeDefaultModelId: value === "system" ? null : value
|
||||
})}
|
||||
>
|
||||
<SelectTrigger id="canvasAutoModeDefaultModelId">
|
||||
<SelectValue placeholder="选择默认模型" />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="system">系统智能选择(根据意图路由)</SelectItem>
|
||||
{modelsData?.models?.filter((m: any) => m.supportsImageGen).map((model: any) => (
|
||||
<SelectItem key={model.id} value={model.id}>
|
||||
{model.displayName}
|
||||
</SelectItem>
|
||||
))}
|
||||
</SelectContent>
|
||||
</Select>
|
||||
<div className="text-xs text-muted-foreground">
|
||||
当用户选择"智能自动"模式时,系统实际使用的生图模型。"系统智能选择"会根据用户意图(如抠图、换背景等)自动路由到最佳模型。
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user