pepperoni21 / ollama-rs

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

Replace host string and port with `Url` #45

Closed zeozeozeo closed 2 months ago

zeozeozeo commented 2 months ago

This makes Ollama store URLs instead of URIs (since Ollama can be mounted anywhere with a reverse proxy, ex: http://example.com/path/to/ollama).

I'm not quite sure if .into() will panic, so maybe the # Panics section in docstrings should be removed.

This does not break any old APIs, only adds new ones:

Closes #44

pepperoni21 commented 2 months ago

Thanks for your contribution!