Skip to content

Commit 49cdf2b

Browse files
committed
feat: excel type
1 parent 816488d commit 49cdf2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/apps/chat/api/chat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import json
21
import orjson
32
import traceback
43
from typing import List
54

5+
import orjson
66
from fastapi import APIRouter, HTTPException
77
from fastapi.responses import StreamingResponse
88
from sqlmodel import select
@@ -97,7 +97,7 @@ async def stream_sql(session: SessionDep, current_user: CurrentUser, request_que
9797
detail="No available datasource configuration found"
9898
)
9999

100-
request_question.engine = ds.type_name
100+
request_question.engine = ds.type_name if ds.type != 'excel' else 'PostgreSQL'
101101

102102
# Get available AI model
103103
aimodel = session.exec(select(AiModelDetail).where(

0 commit comments

Comments
 (0)