pepperoni21 / ollama-rs

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

feat: Add an example to show how to load GenerationOptions from a json string #30

Closed AlexisTM closed 4 months ago

AlexisTM commented 4 months ago

Followup of #28

This adds an example to show how to load the GenerationOptions from JSON data.

To avoid adding a build step (copy options.json file to the build folder), this is shown with a raw string.

pepperoni21 commented 4 months ago

Looks good, thanks for your contribution!

AlexisTM commented 4 months ago

You are welcome! Thank you for the library ;)