Skip to content

how to convert resp to dict or json?  #139

@ikrammert

Description

@ikrammert

Description of the feature request:

hi, i have a question
i write this code but this 'resp' not JSON serializable

genai.configure(api_key=apiKey)
    model = genai.GenerativeModel("gemini-pro")   
    resp = model.generate_content("tell me a joke")
    b=resp.candidates
    

or resp._result

how to convert resp to dict or json?
thanks for help ❤️

What problem are you trying to solve with this feature?

No response

Any other information you'd like to share?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions