pepperoni21 / ollama-rs

A Rust library allowing to interact with the Ollama API.
MIT License
367 stars 47 forks source link

The GenerationFinalResponseData struct is missing load_duration. #8

Closed nate34k closed 6 months ago

nate34k commented 6 months ago

I noticed that the field for load_duration in the GenerationFinalResponseData struct was removed, yet it still exists in the API. Is it going to be coming back or is there a larger issue with it I am unaware of?

pepperoni21 commented 6 months ago

Hey, by running the tests I noticed that this field was not included anymore in the responses which caused an error while parsing the struct so I thought it was just removed

nate34k commented 6 months ago

After further testing, it seems that is the case, and they just didn't update their API docs.