Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/ai-gateway/providers/bedrock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ When making requests to Amazon Bedrock, ensure you have the following:

When making requests to Amazon Bedrock, replace `https://bedrock-runtime.us-east-1.amazonaws.com/` in the URL you're currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/aws-bedrock/bedrock-runtime/us-east-1/`, then add the model you want to run at the end of the URL.

With Bedrock, you will need to sign the URL before you make requests to AI Gateway. You can try using the [`aws4fetch`](https://github.com/mhart/aws4fetch) SDK.
With Bedrock, you will need to sign the URL before you make requests to AI Gateway. You can try using the ['aws4fetch'](https://github.com/mhart/aws4fetch) SDK.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
With Bedrock, you will need to sign the URL before you make requests to AI Gateway. You can try using the ['aws4fetch'](https://github.com/mhart/aws4fetch) SDK.
With Bedrock, you will need to sign the URL before you make requests to AI Gateway. You can try using the [`aws4fetch`](https://github.com/mhart/aws4fetch) SDK.


## Examples

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/ai-gateway/universal.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ You can use the Universal endpoint to contact every provider. The payload is exp

- `provider` : the name of the provider you would like to direct this message to. Can be OpenAI, workers-ai, or any of our supported providers.
- `endpoint`: the pathname of the provider API you’re trying to reach. For example, on OpenAI it can be `chat/completions`, and for Workers AI this might be [`@cf/meta/llama-3.1-8b-instruct`](/workers-ai/models/llama-3.1-8b-instruct/). See more in the sections that are specific to [each provider](/ai-gateway/providers/).
- `authorization`: the content of the Authorization HTTP Header that should be used when contacting this provider. This usually starts with "Token" or "Bearer".
- `authorization`: the content of the Authorization HTTP Header that should be used when contacting this provider. This usually starts with 'Token' or 'Bearer'.
- `query`: the payload as the provider expects it in their official API.

## cURL example
Expand Down