Skip to content

Commit

Permalink
try omit validation
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyeh committed Dec 18, 2024
1 parent 6bc6fbd commit e4790b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wren-ai-service/src/pipelines/generation/chart_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from hamilton.async_driver import AsyncDriver
from haystack import component
from haystack.components.builders.prompt_builder import PromptBuilder
from jsonschema import validate
from jsonschema.exceptions import ValidationError
from langfuse.decorators import observe
from pydantic import BaseModel
Expand Down Expand Up @@ -72,7 +71,7 @@ def run(
generation_result = orjson.loads(replies[0])
reasoning = generation_result.get("reasoning", "")
if chart_schema := generation_result.get("chart_schema", {}):
validate(chart_schema, schema=vega_schema)
# validate(chart_schema, schema=vega_schema)
chart_schema["data"]["values"] = []
return {
"results": {
Expand Down

0 comments on commit e4790b6

Please sign in to comment.