Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyeh committed Nov 15, 2024
1 parent 2ce0acf commit e5cf965
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions wren-ai-service/src/pipelines/generation/sql_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,11 @@ class GenerationResults(BaseModel):

SQL_GENERATION_MODEL_KWARGS = {
"response_format": {
"type": "text",
# "type": "json_schema",
# "json_schema": {
# "name": "sql_results",
# "schema": GenerationResults.model_json_schema(),
# },
"type": "json_schema",
"json_schema": {
"name": "sql_results",
"schema": GenerationResults.model_json_schema(),
},
}
}

Expand Down

0 comments on commit e5cf965

Please sign in to comment.