feat(*): 创作体验 - 支持资源技能引用并统一生成反馈与画布列表展示
This commit is contained in:
1 parent
92b0487ec9
commit
8c573352d5
20 files changed
+589
-130
No files matched your search
@@ -333,7 +333,9 @@ export function modelOptionName(value: string) {
|
||||
export function modelDisplayName(config: AiConfig, value: string) {
|
||||
const model = modelOptionName(value);
|
||||
const channel = resolveModelChannel(config, value);
|
||||
return channel.modelCosts?.find((item) => item.model === model)?.displayName?.trim() || model;
|
||||
const displayName = channel.modelCosts?.find((item) => item.model === model)?.displayName?.trim();
|
||||
if (displayName) return displayName;
|
||||
return channel.scope === "system" ? "系统模型" : model;
|
||||
}
|
||||
|
||||
export function modelOptionLabel(config: AiConfig, value: string) {
|
||||
|
||||
Reference in new issue
Block a user