Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyeh committed Jul 1, 2024
1 parent f991782 commit de803c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wren-ai-service/src/web/v1/services/sql_explanation.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async def sql_explanation(self, sql_explanation_request: SQLExplanationRequest):
full_sql=sql_explanation_request.full_sql,
)

sql_explanation_result = generation_result["post_processor"]["results"]
sql_explanation_result = generation_result["post_process"]["results"]

logger.debug(f"sql explanation results: {sql_explanation_result}")

Expand Down
2 changes: 1 addition & 1 deletion wren-ai-service/src/web/v1/services/sql_regeneration.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async def sql_regeneration(
)

sql_regeneration_result = generation_result[
"description_regeneration_post_processor"
"description_regeneration_post_process"
]["results"]

logger.debug(f"sql regeneration results: {sql_regeneration_result}")
Expand Down

0 comments on commit de803c7

Please sign in to comment.