Compare commits

...

2 Commits

2 changed files with 3 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ export interface ChatStore {
const _defaultAPIEndpoint = "https://api.openai.com/v1/chat/completions";
const newChatStore = (
apiKey = "",
systemMessageContent = "你是一个有用的人工智能助理,根据我的提问和要求回答我的问题",
systemMessageContent = "Follow my instructions carefully",
apiEndpoint = _defaultAPIEndpoint,
streamMode = true,
model = "gpt-3.5-turbo-0613"

View File

@@ -321,10 +321,8 @@ export default function ChatBOX(props: {
/>
))}
{showGenerating && (
<p className="p-2 my-2 animate-pulse dark:text-white">
{generatingMessage
? generatingMessage.split("\n").map((line) => <p>{line}</p>)
: "生成中,最长可能需要一分钟,请保持网络稳定"}
<p className="p-2 my-2 animate-pulse dark:text-white message-content">
{generatingMessage || "生成中,最长可能需要一分钟,请保持网络稳定"}
...
</p>
)}