-
-
Notifications
You must be signed in to change notification settings - Fork 37k
Add bearer token as optional setting to Ollama #165325
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
Merged
+593
−52
Merged
Changes from 6 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
49bdb6e
feat(ollama): allow to setup bearer token
ziouf bff9b0d
fix: use truthiness check
ziouf 46ce198
fix: persist api_key in config
ziouf c07595a
test: add tests for api_key
ziouf 706bac3
Merge branch 'dev' into feat/ollama-bearer-token
ziouf 30710f8
fix: use ha co CONF_API_KEY constant
ziouf 873394c
fix: use None as default api_key value
ziouf e2d8a5f
fix: explicit error message on invalid api_key
ziouf b7a3bc9
fix: default value of optional api_key
ziouf fcf62eb
fix: default value of optional api_key
ziouf 442d9bd
test: add test case for unauthorized api-key exception
ziouf 5b067aa
test: rename to invalid_auth
ziouf 25d8ab3
fix: always raise invalid_auth error on HTTP 401
ziouf be20193
fix: use default translation
ziouf b92d6f0
test: ensure CONF_API_KEY is not persisted if not defined by user
ziouf 8499cb0
test: add setup test
ziouf 29e7ba9
test: add test cases
ziouf a29ab9d
fix: manage ConfigEntryAuthFailed exception
ziouf 06b466a
fix: enhance management of 401/403 errors
ziouf 742cadf
test: use core CONF_URL and CONF_API_KEY instead of ollama specific ones
ziouf c42d985
fix: trim api_key value
ziouf b404210
fix: validate url before duplicate entry check
ziouf 0f90086
fix: trim url user input
ziouf 60f96c8
test: fix config flow minor version
ziouf fccf115
fix: use ConfigEntryError for others http codes than 401 and 403
ziouf 98d1ba5
test: fix ConfigEntryError
ziouf 18f9ef9
test: rename test
ziouf 87422a8
fix: better management of http 5xx and 429
ziouf 8283a49
fix: defensive trim at runtime
ziouf c67de69
chore: add comments and test function renaming
ziouf 6587a48
feat: implement async_step_reauth flow
ziouf c61fd40
test: combine tests via parametrize
ziouf 8ccdb5f
test: combine tests via parametrize
ziouf 642aa8b
test: update reauth_flow test to ensure reauth_flow is completed succ…
ziouf 94d93dd
testadd test to ensure flows recover after an error and completes suc…
ziouf 46062c8
test: trim api_key after ensuring itis not None
ziouf 1ee947a
test: add case for reconfigure without api_key to remove it
ziouf 5174544
Potential fix for pull request finding
ziouf c20a231
Potential fix for pull request finding
ziouf 505092b
test: add ca for spaces only api_key
ziouf ed81b2b
Potential fix for pull request finding
ziouf 2a4f3cf
Potential fix for pull request finding
ziouf 8c1babc
Potential fix for pull request finding
ziouf b86f602
Merge branch 'dev' into feat/ollama-bearer-token
ziouf cb4802d
Fix
joostlek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.