mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Return python object instead of JSON #131
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Siddhesh-Agarwal on GitHub (Aug 18, 2024).
Is it on the roadmap to return a Python object instead of a dictionary?
If it is, the solution is to create Pydantic classes for everything and the parse the JSON object with the
model_validate_jsonfunction@RithikRaj64 commented on GitHub (Sep 4, 2024):
Yeah that would be a better way to manage stuff.
@ParthSareen commented on GitHub (Nov 26, 2024):
Added with the new release! @Siddhesh-Agarwal @RithikRaj64 :)