-
Notifications
You must be signed in to change notification settings - Fork 505
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
feat: implement apiToken failover mechanism #1256
Open
cr7258
wants to merge
31
commits into
alibaba:main
Choose a base branch
from
cr7258:failover
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
095b25e
feat: implement apiToken failover mechanism
cr7258 4af200c
Use SetSharedData for leader election and syncing apiTokens between W…
cr7258 192d855
Merge branch 'main' into failover
cr7258 856343c
support failover for all models
cr7258 7d5f427
add cas retry logic
cr7258 ee49848
wrap getApiTokenInUse funtion
cr7258 1e40d82
only removed the apiToken when the number of consecutive request fail…
cr7258 432395b
use uuid as vmid
cr7258 67551f2
fix byte covert
cr7258 82b2284
reset shared data during initialization
cr7258 daa48fe
Merge branch 'main' into failover
cr7258 8a818ed
failover support new model
cr7258 0554c85
fix
cr7258 e3401d5
move SetApiTokensFailover to complete function
cr7258 0f79913
wrap failover logic into ProviderConfig
cr7258 bda87f1
fix
cr7258 263c38c
config envoy local cluster and isolate apiToken ctx between different…
cr7258 374d5be
update README.md
cr7258 fd49f2d
add description
cr7258 66c371b
fix nil point exception when don't set failover config
cr7258 2130c00
Merge branch 'main' into failover
cr7258 7f36c09
support github provider
cr7258 01b92d8
fix
cr7258 a11a38b
Merge branch 'main' into failover
cr7258 01b0eec
unified the transformation of HTTP headers and body for ai-proxy and …
cr7258 a180e65
fix readme
cr7258 a72a8a1
optimize
cr7258 6a62333
refine transform headers and body
cr7258 f1f375e
move defaultInsertHttpContextMessage to context.go
cr7258 0296110
fix
cr7258 f164854
remove get context in original protocol
cr7258 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
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
context逻辑