diff --git a/frontend/src/entity/CommonEntity.ts b/frontend/src/entity/CommonEntity.ts index d926132d..d7db8783 100644 --- a/frontend/src/entity/CommonEntity.ts +++ b/frontend/src/entity/CommonEntity.ts @@ -6,13 +6,13 @@ export interface SelectOption { export const modelTypeOptions: SelectOption[] = [ { label: 'OpenAI', value: 0 }, - { label: 'Anthropic', value: 1 }, + /* { label: 'Anthropic', value: 1 }, { label: 'Baidu', value: 2 }, { label: 'iFLYTEK', value: 3 }, { label: 'Zhipu AI', value: 4 }, { label: 'MiniMax', value: 5 }, { label: 'Tencent', value: 6 }, - { label: 'Other', value: 7 }, + { label: 'Other', value: 7 }, */ ] export const getModelTypeName = (value: any) => { diff --git a/frontend/src/views/system/model/index.vue b/frontend/src/views/system/model/index.vue index 41da839d..72789b8e 100644 --- a/frontend/src/views/system/model/index.vue +++ b/frontend/src/views/system/model/index.vue @@ -191,6 +191,7 @@ const handleSearch = (e: any) => { const editHandler = (id: any) => { modelApi.query(id).then((res: any) => { state.form = res + state.form.temperature = state.form.temperature * 100 dialogFormVisible.value = true }) } @@ -259,6 +260,7 @@ const addTerm = () => { ...state.form, } delete param.id + param.temperature = param.temperature / 100 modelApi.add(param).then(() => { dialogFormVisible.value = false search() @@ -269,6 +271,8 @@ const addTerm = () => { }) } const editTerm = () => { + const param = state.form + param.temperature = param.temperature / 100 modelApi.edit(state.form).then((res: any) => { console.log('edit term', res) dialogFormVisible.value = false