feat: 添加支持阿里的通义千问对话

This commit is contained in:
whale_fall
2024-01-19 09:52:16 +08:00
parent 913d538587
commit 6968da3ac7
6 changed files with 258 additions and 5 deletions

View File

@@ -175,6 +175,11 @@ const platforms = ref([
value: "Azure",
api_url: "https://chat-bot-api.openai.azure.com/openai/deployments/{model}/chat/completions?api-version=2023-05-15"
},
{
name: "【阿里】千义通问",
value: "Qwen",
api_url: "https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation"
},
])
const types = ref([
{name: "聊天", value: "chat"},
@@ -272,7 +277,7 @@ const changePlatform = () => {
.opt-box {
padding-bottom: 10px;
display flex;
display: flex;
justify-content flex-end
.el-icon {
@@ -289,7 +294,7 @@ const changePlatform = () => {
.el-form-item__content {
.el-icon {
padding-left 10px;
padding-left: 10px;
}
}
}

View File

@@ -134,6 +134,8 @@ const platforms = ref([
{name: "清华智普ChatGLM", value: "ChatGLM"},
{name: "百度文心一言", value: "Baidu"},
{name: "微软Azure", value: "Azure"},
{name: "阿里通义千问", value: "Ali"},
])
// 获取数据
@@ -233,12 +235,12 @@ const remove = function (row) {
</script>
<style lang="stylus" scoped>
@import "@/assets/css/admin/form.styl"
@import "@/assets/css/admin/form.styl";
.list {
.opt-box {
padding-bottom: 10px;
display flex;
display: flex;
justify-content flex-end
.el-icon {