Skip to content

Commit 14a6c9f

Browse files
Correct JavaScript Capitalization in Documentation (#22428)
* Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix --------- Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com>
1 parent 0c8cf04 commit 14a6c9f

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

src/content/docs/ai-gateway/observability/logging/logpush.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ To configure Workers Logpush for AI Gateway, follow these steps:
3838

3939
You need to generate a key pair to encrypt and decrypt the logs. This script will output your RSA privateKey and publicKey. Keep the private key secure, as it will be used to decrypt the logs. Below is a sample script to generate the keys using Node.js and OpenSSL.
4040

41-
<Tabs syncKey="JSPlusSSL"> <TabItem label="Javascript">
41+
<Tabs syncKey="JSPlusSSL"> <TabItem label="JavaScript">
4242

4343
```js title="JavaScript"
4444
const crypto = require("crypto");
@@ -99,11 +99,11 @@ After configuring Workers Logpush, logs will be sent encrypted using the public
9999

100100
To decrypt the encrypted log bodies and metadata from AI Gateway, you can use the following Node.js script or OpenSSL:
101101

102-
<Tabs syncKey="JSPlusSSL"> <TabItem label="Javascript">
102+
<Tabs syncKey="JSPlusSSL"> <TabItem label="JavaScript">
103103

104104
To decrypt the encrypted log bodies and metadata from AI Gateway, download the logs to a folder, in this case its named `my_log.log.gz`.
105105

106-
Then copy this javascript file into the same folder and place your private key in the top variable.
106+
Then copy this JavaScript file into the same folder and place your private key in the top variable.
107107

108108
```js title="JavaScript"
109109
const privateKeyStr = `-----BEGIN RSA PRIVATE KEY-----

src/content/docs/ai-gateway/providers/bedrock.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ When making requests to Amazon Bedrock, ensure you have the following:
2525

2626
## Make a request
2727

28-
When making requests to Amazon Bedrock, replace `https://bedrock-runtime.us-east-1.amazonaws.com/` in the URL youre 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.
28+
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.
2929

3030
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.
3131

src/content/docs/ai-gateway/providers/cohere.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/cohere
1313

1414
## URL structure
1515

16-
When making requests to [Cohere](https://cohere.com/), replace `https://api.cohere.ai/v1` in the URL youre currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/cohere`.
16+
When making requests to [Cohere](https://cohere.com/), replace `https://api.cohere.ai/v1` in the URL you're currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/cohere`.
1717

1818
## Prerequisites
1919

src/content/docs/ai-gateway/providers/grok.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Grok
33
pcx_content_type: get-started
44
---
55

6-
[Grok](https://docs.x.ai/docs#getting-started) is s a general purpose model that can be used for a variety of tasks, including generating and understanding text, code, and function calling.
6+
[Grok](https://docs.x.ai/docs#getting-started) is a general purpose model that can be used for a variety of tasks, including generating and understanding text, code, and function calling.
77

88
## Endpoint
99

src/content/docs/ai-gateway/providers/groq.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/groq
1313

1414
## URL structure
1515

16-
When making requests to [Groq](https://groq.com/), replace `https://api.groq.com/openai/v1` in the URL youre currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/groq`.
16+
When making requests to [Groq](https://groq.com/), replace `https://api.groq.com/openai/v1` in the URL you're currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/groq`.
1717

1818
## Prerequisites
1919

src/content/docs/ai-gateway/providers/huggingface.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/huggingface
1313

1414
## URL structure
1515

16-
When making requests to HuggingFace Inference API, replace `https://api-inference.huggingface.co/models/` in the URL youre currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/huggingface`. Note that the model youre trying to access should come right after, for example `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/huggingface/bigcode/starcoder`.
16+
When making requests to HuggingFace Inference API, replace `https://api-inference.huggingface.co/models/` in the URL you're currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/huggingface`. Note that the model you're trying to access should come right after, for example `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/huggingface/bigcode/starcoder`.
1717

1818
## Prerequisites
1919

src/content/docs/ai-gateway/providers/replicate.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/replicate
1313

1414
## URL structure
1515

16-
When making requests to Replicate, replace `https://api.replicate.com/v1` in the URL youre currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/replicate`.
16+
When making requests to Replicate, replace `https://api.replicate.com/v1` in the URL you're currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/replicate`.
1717

1818
## Prerequisites
1919

src/content/docs/ai-gateway/tutorials/deploy-aig-worker.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Go to your new open Worker project:
5151
cd openai-aig
5252
```
5353

54-
Inside of your new opeai-aig directory, find and open the `src/index.js` file. You will configure this file for most of the tutorial.
54+
Inside of your new openai-aig directory, find and open the `src/index.js` file. You will configure this file for most of the tutorial.
5555

5656
Initially, your generated `index.js` file should look like this:
5757

src/content/docs/ai-gateway/universal.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You can use the Universal endpoint to contact every provider. The payload is exp
1919

2020
- `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.
2121
- `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/).
22-
- `authorization`: the content of the Authorization HTTP Header that should be used when contacting this provider. This usually starts with Token or Bearer.
22+
- `authorization`: the content of the Authorization HTTP Header that should be used when contacting this provider. This usually starts with "Token" or "Bearer".
2323
- `query`: the payload as the provider expects it in their official API.
2424

2525
## cURL example

0 commit comments

Comments
 (0)