pepperoni21 / ollama-rs

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

fixed create model #3

Closed Yvonne-Aizawa closed 10 months ago

Yvonne-Aizawa commented 10 months ago

ollama expects "name" and "path" so i added a serde remame to make it send that

pepperoni21 commented 10 months ago

Oh you're right, thanks for your contribution

pepperoni21 commented 10 months ago

But it's a good idea to include this field in the request to Ollama and set it to "json", so it would not cause any issue if this format is not selected by default anymore