feat: support for freeGPT35 API

This commit is contained in:
RockYang
2024-04-10 14:49:07 +08:00
parent abab76ccc6
commit 1e9c5adb0a
6 changed files with 69 additions and 2 deletions

View File

@@ -90,6 +90,7 @@ export default defineComponent({
}
.chat-item {
width 100%
position: relative;
padding: 0 5px 0 0;
overflow: hidden;

View File

@@ -93,6 +93,7 @@ export default defineComponent({
}
.chat-item {
width 100%
position: relative;
padding: 0 0 0 5px;
overflow: hidden;

View File

@@ -682,6 +682,7 @@ const connect = function (chat_id, role_id) {
reader.onload = () => {
const data = JSON.parse(String(reader.result));
if (data.type === 'start') {
console.log(data)
chatData.value.push({
type: "reply",
id: randString(32),