ollama-python icon indicating copy to clipboard operation
ollama-python copied to clipboard

Return python object instead of JSON

Open Siddhesh-Agarwal opened this issue 1 year ago • 1 comments

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_json function

Siddhesh-Agarwal avatar Aug 18 '24 08:08 Siddhesh-Agarwal

Yeah that would be a better way to manage stuff.

RithikRaj64 avatar Sep 04 '24 14:09 RithikRaj64

Added with the new release! @Siddhesh-Agarwal @RithikRaj64 :)

ParthSareen avatar Nov 26 '24 23:11 ParthSareen