File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ export interface SelectOption {
66
77export const modelTypeOptions : SelectOption [ ] = [
88 { label : 'OpenAI' , value : 0 } ,
9- { label : 'Anthropic' , value : 1 } ,
9+ /* { label: 'Anthropic', value: 1 },
1010 { label: 'Baidu', value: 2 },
1111 { label: 'iFLYTEK', value: 3 },
1212 { label: 'Zhipu AI', value: 4 },
1313 { label: 'MiniMax', value: 5 },
1414 { label: 'Tencent', value: 6 },
15- { label : 'Other' , value : 7 } ,
15+ { label: 'Other', value: 7 }, */
1616]
1717
1818export const getModelTypeName = ( value : any ) => {
Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ const handleSearch = (e: any) => {
191191const editHandler = (id : any ) => {
192192 modelApi .query (id ).then ((res : any ) => {
193193 state .form = res
194+ state .form .temperature = state .form .temperature * 100
194195 dialogFormVisible .value = true
195196 })
196197}
@@ -259,6 +260,7 @@ const addTerm = () => {
259260 ... state .form ,
260261 }
261262 delete param .id
263+ param .temperature = param .temperature / 100
262264 modelApi .add (param ).then (() => {
263265 dialogFormVisible .value = false
264266 search ()
@@ -269,6 +271,8 @@ const addTerm = () => {
269271 })
270272}
271273const editTerm = () => {
274+ const param = state .form
275+ param .temperature = param .temperature / 100
272276 modelApi .edit (state .form ).then ((res : any ) => {
273277 console .log (' edit term' , res )
274278 dialogFormVisible .value = false
You can’t perform that action at this time.
0 commit comments