mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
perf: OpenAI is used by default
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user