Skip to content

Commit c078221

Browse files
authored
Merge pull request #3 from OpenLMLab/main
Release
2 parents 7b3d516 + 32911f9 commit c078221

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ python server.py --pretrained_path fnlp/moss-moon-003-sft
6262
- [GODEL](https://github.com/microsoft/GODEL)
6363
- [GODEL-v1_1-base-seq2seq](https://huggingface.co/microsoft/GODEL-v1_1-base-seq2seq)
6464
- [GODEL-v1_1-large-seq2seq](https://huggingface.co/microsoft/GODEL-v1_1-large-seq2seq)
65-
- [StableLM]
65+
- [StableLM](https://github.com/Stability-AI/StableLM)
6666
- [stablelm-tuned-alpha-3b](https://huggingface.co/stabilityai/stablelm-tuned-alpha-3b)
6767
- [stablelm-tuned-alpha-7b](https://huggingface.co/stabilityai/stablelm-tuned-alpha-7b)
6868

ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ChatZoo",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",

ui/src/components/ChatBox.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<!-- <el-drawer :modal="false" title="参数控制" :visible.sync="drawer" direction="ltr" >看看</el-drawer> -->
55
<div class="chat-header clearfix" style="display: flex; flex-direction: column; position:relative;">
66
<div style="display: flex; align-items: center; justify-content: space-between; width: 100%;">
7-
<div style="display: flex; align-items: center;">
8-
<h4 style="width: auto; margin: 0;">{{ model }}</h4>
7+
<div style="display: flex; align-items: center; justify-content: center; flex: 1;">
8+
<h4 style="margin: 0;">{{ model }}</h4>
99
</div>
1010
<div>
1111
<el-button type="danger" icon="el-icon-delete" size="mini" @click.prevent="deleteChatBox" circle></el-button>
@@ -182,7 +182,10 @@ export default {
182182
const instance = axios.create({
183183
baseURL: ''
184184
})
185-
const data = this.dialogue
185+
const data = {
186+
"query": this.dialogue,
187+
"params": {}
188+
}
186189
this.loading = true
187190
console.log('连接', this.url)
188191
if(this.isiframe) {

ui/src/components/NewBox.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<el-input v-model="form.url"></el-input>
1313
</el-form-item>
1414
<el-form-item>
15-
<el-radio v-model="form.isiframe" label="iframe">iframe</el-radio>
16-
<el-radio v-model="form.isiframe" label="box">box</el-radio>
15+
<el-radio v-model="form.isiframe" label="iframe">外部网页接入</el-radio>
16+
<el-radio v-model="form.isiframe" label="box">本地模型</el-radio>
1717
</el-form-item>
1818
<el-form-item>
1919
<el-button :loading="loading" type="primary" @click.prevent="register">

0 commit comments

Comments
 (0)