-
Notifications
You must be signed in to change notification settings - Fork 476
Closed
Labels
component:python sdkIssue/PR related to Python SDKIssue/PR related to Python SDKtype:feature requestNew feature request/enhancementNew feature request/enhancement
Milestone
Description
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
Labels
component:python sdkIssue/PR related to Python SDKIssue/PR related to Python SDKtype:feature requestNew feature request/enhancementNew feature request/enhancement