Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling ollama from the echobot.py example #93

Open
scumola opened this issue Aug 28, 2024 · 0 comments
Open

Calling ollama from the echobot.py example #93

scumola opened this issue Aug 28, 2024 · 0 comments

Comments

@scumola
Copy link

scumola commented Aug 28, 2024

I figured out that the bot is running in a container and got the ollama module added to the REQUIREMENTS list in the code, so it pip-installed the ollama module into the image, but I'm not able to call the ollama endpoint for some reason from inside of the container. I can write a small piece of code that works locally, but when I move that same code to run inside of the container, it hangs. I'm calling ollama by IP (not using localhost - because I know that localhost is different in a container), so I'm running ollama running on the outside interface, and referencing it by IP, which works locally using a simple python script, but when it's run inside the container, it just hangs. No logs.

Is there something weird about the container that it can't make outbound TCP connections or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant