Преглед изворни кода

fix emoji issue for doubao and glm's congview & congvideox

suruiqiang пре 10 месеци
родитељ
комит
f156430cc5
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      app/components/emoji.tsx

+ 6 - 2
app/components/emoji.tsx

@@ -80,9 +80,13 @@ export function Avatar(props: { model?: ModelType; avatar?: string }) {
       LlmIcon = BotIconGrok;
     } else if (modelName.startsWith("hunyuan")) {
       LlmIcon = BotIconHunyuan;
-    } else if (modelName.startsWith("doubao")) {
+    } else if (modelName.startsWith("doubao") || modelName.startsWith("ep-")) {
       LlmIcon = BotIconDoubao;
-    } else if (modelName.startsWith("glm")) {
+    } else if (
+      modelName.startsWith("glm") ||
+      modelName.startsWith("cogview-") ||
+      modelName.startsWith("cogvideox-")
+    ) {
       LlmIcon = BotIconChatglm;
     }