-
Notifications
You must be signed in to change notification settings - Fork 10k
Update authorization header and clarify API usage #22923
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
Closed
hyperlint-ai
wants to merge
20
commits into
production
from
hyperlint/automation/repository-scan/d9984c1
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
31a084a
Hyperlint Automation Fix
hyperlint-ai[bot] cba741c
Hyperlint Automation Fix
hyperlint-ai[bot] 38f1859
Hyperlint Automation Fix
hyperlint-ai[bot] 63e5654
Hyperlint Automation Fix
hyperlint-ai[bot] 2522b24
Hyperlint Automation Fix
hyperlint-ai[bot] d1bb463
Hyperlint Automation Fix
hyperlint-ai[bot] 2491d99
Hyperlint Automation Fix
hyperlint-ai[bot] 65e8753
Hyperlint Automation Fix
hyperlint-ai[bot] d2d2219
Hyperlint Automation Fix
hyperlint-ai[bot] c89e971
Hyperlint Automation Fix
hyperlint-ai[bot] 3b07cf4
Hyperlint Automation Fix
hyperlint-ai[bot] 659d261
Hyperlint Automation Fix
hyperlint-ai[bot] 4ae92ea
Hyperlint Automation Fix
hyperlint-ai[bot] 7a8a596
Hyperlint Automation Fix
hyperlint-ai[bot] 8084125
Hyperlint Automation Fix
hyperlint-ai[bot] ff01ab7
Hyperlint Automation Fix
hyperlint-ai[bot] 4ac2b2f
Hyperlint Automation Fix
hyperlint-ai[bot] f0b9669
Hyperlint Automation Fix
hyperlint-ai[bot] fb42c65
Hyperlint Automation Fix
hyperlint-ai[bot] cb666d5
Hyperlint Automation Fix
hyperlint-ai[bot] 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 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,7 +64,7 @@ curl -X POST https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/comp | |
|
|
||
| ### Universal provider | ||
|
|
||
| You can also use this pattern with the [Universal Endpoint](/ai-gateway/universal/) to add [fallbacks](/ai-gateway/configuration/fallbacks/) across multiple providers. When used in combination, every request will return the same standardized format, whether from the primary or fallback model. This behavior means that you do not have to add extra parsing logic to your app. | ||
| You can also use this pattern with the [Universal Endpoint](/ai-gateway/universal/) to add [fallbacks](/ai-gateway/configuration/fallbacks/) across multiple providers. When used in combination, every request will return the same standardized format, whether from the primary or fallback model. This behavior means that you do not have to add extra parsing logic to your app. | ||
|
|
||
| ```ts title="index.ts" | ||
| export interface Env { | ||
|
|
@@ -77,7 +77,7 @@ export default { | |
| provider: "compat", | ||
| endpoint: "chat/completions", | ||
| headers: { | ||
| authorization: "Bearer ", | ||
| authorization: "Bearer", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The 'authorization' header is set to 'Bearer' without a token. Typically, the 'Authorization' header should be in the format 'Bearer '. If this is for demonstration, consider clarifying with a comment or placeholder to avoid confusion. |
||
| }, | ||
| query: { | ||
| model: "google-ai-studio/gemini-2.0-flash", | ||
|
|
||
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
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.
Please confirm that 'Cloudflare@latest' is the correct casing for the npm package. If the package is published as 'cloudflare', this change could break the installation command.