mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
This PR adds a `--ollama-url` option to `cli.py`, the lightweight redis-cli-like tool that expands !"text" arguments into embeddings via Ollama. Previously, the embedding call was hardcoded to http://localhost:11434/api/embeddings. With this change, users can specify a custom Ollama server URL when starting the tool. If no URL is provided, the tool defaults to what it was before.
5.2 KiB
Executable File
5.2 KiB
Executable File