Compare commits
2 Commits
67e12e6933
...
7ded1c8522
| Author | SHA1 | Date | |
|---|---|---|---|
|
7ded1c8522
|
|||
|
e76f087776
|
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user