修复ChatGLM获取token方法,并且将非流式请求也接入
This commit is contained in:
@@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user