8000 model_version="gpt-4" · Issue #5 · mljar/plotai · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
model_version="gpt-4" #5
Closed
Closed
@rajayyala

Description

@rajayyala

Hi,

I am trying to set model version to gpt-4 as you suggested in the README file but I am getting the following error:


TypeError Traceback (most recent call last)
Cell In[4], line 6
3 df = pd.DataFrame({"x":[1,2,3], "y": [4,5,6]})
4 ## create a plot
----> 6 plot = PlotAI(df,model_version="gpt-4")
8 plot.make("scatter plot")

TypeError: PlotAI.init() got multiple values for argument 'model_version'

Initially when i tried with the default version , i got the following error:

...
178 """
--> 179 raise TypeError(f'Object of type {o.class.name} '
180 f'is not JSON serializable')

TypeError: Object of type DataFrame is not JSON serializable

Any suggestions how to fix the above errors? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0