pepperoni21 / ollama-rs

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

Replace host string and port with `Url` #45

Closed zeozeozeo closed 7 months ago

zeozeozeo commented 7 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 7 months ago

Thanks for your contribution!