浏览代码

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;
     }