Skip to content

Commit

Permalink
add user_id
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyeh committed Sep 19, 2024
1 parent 04b88a4 commit 5f5c5d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions wren-ai-service/src/web/v1/services/sql_answer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class SqlAnswerRequest(BaseModel):
sql: str
sql_summary: str
thread_id: Optional[str] = None
user_id: Optional[str] = None

@property
def query_id(self) -> str:
Expand Down
1 change: 1 addition & 0 deletions wren-ai-service/src/web/v1/services/sql_explanation.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class SQLExplanationRequest(BaseModel):
mdl_hash: Optional[str] = None
thread_id: Optional[str] = None
project_id: Optional[str] = None
user_id: Optional[str] = None

@property
def query_id(self) -> str:
Expand Down
1 change: 1 addition & 0 deletions wren-ai-service/src/web/v1/services/sql_regeneration.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class SQLRegenerationRequest(BaseModel):
mdl_hash: Optional[str] = None
thread_id: Optional[str] = None
project_id: Optional[str] = None
user_id: Optional[str] = None

@property
def query_id(self) -> str:
Expand Down

0 comments on commit 5f5c5d8

Please sign in to comment.