-
Notifications
You must be signed in to change notification settings - Fork 13
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
Not respecting/using specified remote address #37
Comments
I should have noted that, on some level, the remote URL is being honoured/used, as the models shown under the |
Thank you for the thorough bug report. I will look into this and hopefully have a fix by end of day tomorrow. |
Thanks for the prompt reply! For what it's worth, I will have a look through the code and try to do some deeper debugging myself. |
This may be in part due to https://github.com/paulrobello/par_ai_core/blob/302f51045aaaba3c8e23dd5f0a8bad6ecb3da73c/src/par_ai_core/llm_config.py#L545 That line
will, I think, prohibit obtaining the Commenting out that line in I'm also not at all sure of the wider implication of removing that line, e.g., with regards to other providers or other users/clients of |
Parllama started with being Ollama only, but has gone through quite a bit of evolution to support other providers and configs. Thank you for the debug assist. I will for sure have things worked out tomorrow. |
I have a partial local fix by adding a line here:
i.e., setting the Note that, with the above, the issue in |
Just released v0.3.13. Let me know if it resolves your issue. |
v0.3.14 had a pretty critical bug fix and I just released v0.3.15 with new copy button on markdown code blocks in chat. |
Hi @paulrobello , my apologies for the delay in responding. I've had a chance to test the updates, both Thank-you kindly for your work, both in fixing this, and for the project/application as a whole! |
Describe the bug
parllama
does not appear to be respecting/using the specified/configured remote Ollama address.I am attempting to use
parllama
with a remote instance of Ollama. Theollama
server is available athttp://10.0.2.2:11434
and is functioning correctly. I can confirm this, as I have other tools working with it successfully, and a basiccurl
test also confirms this:I have set
OLLAMA_URL
to this address, and can confirm both via the GUI (underOptions
,AI Providers
,Ollama
,Base URL
) and by inspection of~/.parllama/settings.json
(bothollama_host
andprovider_base_urls.Ollama
) that this value is propagating through to the application and its configuration. Note that I've also tried using an explicit--ollama-url
CLI option with no change in behaviour.However, every attempt to initiate a chat (even a most basic "Hello") results in failure with the response
[Errno 111] Connection refused
. Inspecting the resultant chat configuration at~/.parllama/chats/<something>.json
shows that the fieldllm_config.base_url
is set tohttp://localhost:11434
, and not the remote host I have specified.I have further confirmed that the problem is the attempt to use
localhost
by separately usingsocat
to create a port forwarding, viasocat tcp-listen:11434,reuseaddr,fork tcp:10.0.2.2:11434
(i.e., forward/redirect traffic onlocalhost:11434
to10.0.2.2:11434
). When doing this, chats work as expected.To Reproduce
Steps to reproduce the behavior:
OLLAMA_URL
tohttp://<host>:<port>
or use `--ollama-url http://:parllama
Expected behavior
I expect the application to use the specified remote Ollama host.
Screenshots
N/A
Desktop (please complete the following information):
uname
:Linux <REDACTED> 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
,Ubuntu 22.04.5 LTS
parllama 0.3.11
Additional context
I am running
parllama
as installed viapipx
and usingpython 3.11
. I am also running it via anssh
connection, viatmux
. Note that this has also highlighted another problem, in thatparllama
crashes withclipman.exceptions.UnsupportedError: Clipboard in TTY is unsupported.
, but I can get around this if I setXDG_SESSION_TYPE=x11
prior).The text was updated successfully, but these errors were encountered: