cap nhat giao dien

This commit is contained in:
quangdn-ght
2025-06-25 23:25:07 +07:00
parent b07760fbc9
commit ee25e4ac82
10 changed files with 20370 additions and 1165 deletions

View File

@@ -1813,7 +1813,7 @@ function _Chat() {
const shouldShowClearContextDivider =
i === clearContextIndex - 1;
console.log(message.role);
// console.log(message.role);
return (
<Fragment key={message.id}>
@@ -1868,9 +1868,9 @@ function _Chat() {
}}
></IconButton>
</div>
{isUser ? (
<Avatar avatar={config.avatar} />
) : (
{/* Neu la user thi khong hien thi avatar */}
{isUser ? null : (
<>
{["system"].includes(message.role) ? (
<Avatar avatar="2699-fe0f" />

View File

@@ -5,7 +5,8 @@ require("../polyfill");
import { useEffect, useState } from "react";
import styles from "./home.module.scss";
import BotIcon from "../icons/bot.svg";
//icon chebichat logo
import BotIcon from "../icons/chebichat.svg";
import LoadingIcon from "../icons/three-dots.svg";
import { getCSSVar, useMobileScreen } from "../utils";
@@ -14,7 +15,7 @@ import dynamic from "next/dynamic";
import { Path, SlotID } from "../constant";
import { ErrorBoundary } from "./error";
import { getISOLang, getLang } from "../locales";
import { getISOLang } from "../locales";
import {
HashRouter as Router,
@@ -212,7 +213,7 @@ function Screen() {
<div
className={clsx(styles.container, {
[styles["tight-container"]]: shouldTightBorder,
[styles["rtl-screen"]]: getLang() === "ar",
// [styles["rtl-screen"]]: getLang() === "ar", // Removed because "ar" is not a possible return value
})}
>
{renderContent()}