nyanp / chat2plot

chat to visualization with LLM
MIT License
203 stars 29 forks source link

chat2plot.py", line 237, in _parse_response config = self._target_schema.parse_obj(json_data) #8

Open kishoreganth opened 7 months ago

kishoreganth commented 7 months ago

config = self._target_schema.parse_obj(json_data) File "pydantic\main.py", line 526, in pydantic.main.BaseModel.parse_obj File "pydantic\main.py", line 341, in pydantic.main.BaseModel.init pydantic.error_wrappers.ValidationError: 1 validation error for PlotConfig x -> time_unit value is not a valid enumeration member; permitted: 'year', 'month', 'week', 'quarter', 'day' (type=type_error.enum; enum_values=[<TimeUnit.YEAR: 'year'>, <TimeUnit.MONTH: 'month'>, <TimeUnit.WEEK: 'week'>, <TimeUnit.QUARTER: 'quarter'>, <TimeUnit.DAY: 'day'>])

This is the error I'm getting when I install chat2plot library. Please help with resolving the issue.