mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import json
|
||||
import orjson
|
||||
import traceback
|
||||
from typing import List
|
||||
|
||||
import orjson
|
||||
from fastapi import APIRouter, HTTPException
|
||||
from fastapi.responses import StreamingResponse
|
||||
from sqlmodel import select
|
||||
@@ -97,7 +96,7 @@ async def stream_sql(session: SessionDep, current_user: CurrentUser, request_que
|
||||
detail="No available datasource configuration found"
|
||||
)
|
||||
|
||||
request_question.engine = ds.type_name
|
||||
request_question.engine = ds.type_name if ds.type != 'excel' else 'PostgreSQL'
|
||||
|
||||
# Get available AI model
|
||||
aimodel = session.exec(select(AiModelDetail).where(
|
||||
|
||||
@@ -213,7 +213,14 @@ const editField = (row: any) => {
|
||||
|
||||
const changeStatus = (row: any) => {
|
||||
currentField.value = row
|
||||
saveField()
|
||||
datasourceApi.saveField(currentField.value).then(() => {
|
||||
closeField()
|
||||
ElMessage({
|
||||
message: t('common.save_success'),
|
||||
type: 'success',
|
||||
showClose: true,
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
const closeField = () => {
|
||||
|
||||
Reference in New Issue
Block a user