修复ChatGLM获取token方法,并且将非流式请求也接入

This commit is contained in:
aixianling
2023-05-18 14:18:18 +08:00
parent c179400d67
commit 8b3db98ffe
3 changed files with 42 additions and 20 deletions

View File

@@ -10,7 +10,7 @@
<script>
import Chat from "./components/chat";
import Settings from "./components/settings";
import {ChatGPT} from "./utils/models";
import {ChatGLM} from "./utils/models";
export default {
name: 'App',
@@ -19,14 +19,13 @@ export default {
return {
showSettings: false,
setting: {
model: new ChatGPT(),
model: new ChatGLM(),
stream: true
},
}
},
methods: {
handleResize() {
console.log("App handleResize:" + window.innerWidth)
this.showSettings = window.innerWidth > 1150;
}
},