SciPhi-AI/R2R

Environment Variable OLLAMA_API_BASE Not Taking Effect When Starting R2R Service using Docker

Closed this issue · 1 comments

lpb1 commented

Description:
I already installed latest version of r2r. When using the r2r serve --docker --config-path=my_config.toml command to start the R2R service, I attempted to configure the remote OLLAMA service by setting the environment variable OLLAMA_API_BASE. However, I found that this environment variable did not take effect.

Reproduction Steps:
1.Set the environment variable OLLAMA_API_BASE:

export OLLAMA_API_BASE=http://example.com:11434

2.Start the R2R service:

r2r serve --docker --config-path=my_config.toml

Expected Behavior:
The environment variable OLLAMA_API_BASE should take effect when the R2R service starts and configure the remote OLLAMA service.

Actual Behavior:
The environment variable OLLAMA_API_BASE does not seem to be read or take effect, resulting in the R2R service being unable to connect correctly to the remote OLLAMA service.