| | |
| | | proxy: { |
| | | '/base': { |
| | | // target: 'http://aiotlink.com:8189', |
| | | //target: 'http://192.168.20.116:8089', |
| | | target: 'http://192.168.20.158:8089', |
| | | target: 'http://192.168.20.116:8089', |
| | | // target: 'http://192.168.20.158:8089', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''), |
| | |
| | | }, |
| | | '/api': { |
| | | // target: 'http://aiotlink.com:8189', |
| | | //target: 'http://192.168.20.116:8089', |
| | | target: 'http://192.168.20.158:8089', |
| | | target: 'http://192.168.20.116:8089', |
| | | // target: 'http://192.168.20.158:8089', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''), |
| | | }, |
| | | '/api/v1': { |
| | | // target: 'http://aiotlink.com:8189', |
| | | //target: 'http://192.168.20.116:8089', |
| | | target: 'http://192.168.20.158:8089', |
| | | target: 'http://192.168.20.116:8089', |
| | | // target: 'http://192.168.20.158:8089', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''), |
| | |
| | | <a-form-item field="api_base" label="基础URL"> |
| | | <a-input v-model="form.api_base" placeholder="请输入基础URL" /> |
| | | </a-form-item> |
| | | <a-form-item field="name" label="API-Key"> |
| | | <a-input v-model="form.name" placeholder="API-Key" /> |
| | | </a-form-item> |
| | | <!-- <a-form-item |
| | | field="raptor" |
| | | label="是否支持 Vision" |
| | |
| | | :style="{ width: '90%', margin: '0 auto' }" |
| | | layout="vertical" |
| | | > |
| | | <a-form-item field="name" label="模型名称"> |
| | | <a-input v-model="form.name" placeholder="请输入模型名称" /> |
| | | <a-form-item field="name" label="模型框架"> |
| | | <!-- <a-input v-model="form.name" placeholder="请输入模型名称" /> --> |
| | | <a-select |
| | | v-model="form.name" |
| | | placeholder="请选择模型框架" |
| | | allow-create |
| | | allow-search |
| | | > |
| | | <a-option |
| | | v-for="(item, index) in modalList" |
| | | :value="index" |
| | | :label="index" |
| | | ></a-option> |
| | | </a-select> |
| | | </a-form-item> |
| | | <!-- <a-form-item field="apiKey" label="API-Key"> |
| | | <a-input v-model="form.apiKey" placeholder="API-Key" /> |
| | |
| | | ref, |
| | | computed, |
| | | } from 'vue'; |
| | | import { addLlmFactory, getLlmDetail, editLlmFactory } from '@/api/model'; |
| | | import { |
| | | modelmyLlms, |
| | | addLlmFactory, |
| | | getLlmDetail, |
| | | editLlmFactory, |
| | | } from '@/api/model'; |
| | | |
| | | import { Message } from '@arco-design/web-vue'; |
| | | import { userModelState } from '@/store'; |
| | | |
| | |
| | | name: [ |
| | | { |
| | | required: true, |
| | | message: '名称不允许为空', |
| | | message: '模型框架不允许为空', |
| | | }, |
| | | ], |
| | | describe: [ |
| | |
| | | }); |
| | | formRef.value?.resetFields(); |
| | | }; |
| | | const modalList = ref([]); |
| | | const queryModel = async () => { |
| | | const res = await modelmyLlms(); |
| | | modalList.value = res.data; |
| | | }; |
| | | queryModel(); |
| | | |
| | | watchEffect(() => { |
| | | if (props.nameList && props.title == '编辑模型') { |
| | |
| | | </a-tabs> |
| | | </a-col> |
| | | <div> </div> |
| | | <div class="box_right"> |
| | | <div class="box_right" v-if="Object.keys(tabData).length > 0"> |
| | | <!-- <div class="search_input"> |
| | | <a-input-search |
| | | :placeholder="$t('cardList.searchInput.placeholder')" |
| | |
| | | /> |
| | | </div> --> |
| | | <div> |
| | | <!-- <addModel></addModel> --> |
| | | <a-button type="primary" @click="handleAddModel"> |
| | | <template #icon> |
| | | <icon-plus /> |
| | |
| | | // border-radius: 0; |
| | | // background-color: #eee; |
| | | } |
| | | :deep(.arco-tabs-tab-close-btn) { |
| | | display: none; |
| | | } |
| | | :deep(.arco-tabs-tab-close-btn .arco-icon) { |
| | | color: #666; |
| | | } |