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

fix: Allow port 443 to be used with https (ollama provider) #1052

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

beetlebugorg
Copy link
Contributor

@beetlebugorg beetlebugorg commented Feb 3, 2025

Overview:

With this change I am able to use Goose with Ollama over https on 443, before this change it would always use port 11434 even if the scheme was https.

Findings:

Per Url docs port() will return None if the scheme is https, even if the port is explicitly provided. This causes the port to always be set to 11434 when trying to use https on 443.

This change will:

  • use 11434 for http by default
  • always use the port provided

Per Url docs port() will return None if the scheme is https, even if the port is explicitly provided. This causes the port to always be set to 11434 when trying to use https on 443.

This change will:
  - use 443 for https by default
  - use 11434 for http be default
  - always use the port provided
@beetlebugorg beetlebugorg changed the title Allow port 443 to be used with https Allow port 443 to be used with https (ollama provider) Feb 3, 2025
@beetlebugorg beetlebugorg changed the title Allow port 443 to be used with https (ollama provider) fix: Allow port 443 to be used with https (ollama provider) Feb 3, 2025
@michaelneale
Copy link
Collaborator

@beetlebugorg nice - I think this will be fine. It does mean remote has to be on one of those 2 ports though? is that ok with you?

@michaelneale michaelneale merged commit c9c0322 into block:main Feb 4, 2025
4 checks passed
@beetlebugorg
Copy link
Contributor Author

You can set any remote port with this change.

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

Successfully merging this pull request may close these issues.

2 participants