support gpt-4

This commit is contained in:
2023-03-29 12:45:59 +08:00
parent 1158fdca38
commit 2d7edeb5b0
4 changed files with 58 additions and 5 deletions

View File

@@ -102,6 +102,7 @@ export default function ChatBOX(props: {
client.apiEndpoint = chatStore.apiEndpoint;
client.sysMessageContent = chatStore.systemMessageContent;
client.messages = chatStore.history.slice(chatStore.postBeginIndex);
client.model = chatStore.model;
// try forget message before sending request
client.forgetSomeMessages();
try {
@@ -198,6 +199,8 @@ export default function ChatBOX(props: {
<p className="break-all opacity-60 p-6 rounded bg-white my-3 text-left dark:text-black">
<br />
Model: {chatStore.model}
<br />
Key: {chatStore.apiKey}
<br />
Endpoint: {chatStore.apiEndpoint}