Skip to content

Commit ac8eaf1

Browse files
grammar
1 parent 5022793 commit ac8eaf1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/content/docs/ai-gateway/configuration/websockets-api.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar:
66
text: Beta
77
---
88

9-
The AI Gateway WebSockets API provides a single persistent connection, enabling continuous communication. By using WebSockets, you can establish a single connection for multiple AI requests, eliminating the need for repeated handshakes and TLS negotiations, which enhances performance and reduces latency. This API supports all AI providers connected to AI Gateway, including those that don't natively support WebSockets.
9+
The AI Gateway WebSockets API provides a single persistent connection, enabling continuous communication. By using WebSockets, you can establish a single connection for multiple AI requests, eliminating the need for repeated handshakes and TLS negotiations, which enhances performance and reduces latency. This API supports all AI providers connected to AI Gateway, including those that do not natively support WebSockets.
1010

1111
## When to use webSockets?
1212

@@ -15,7 +15,7 @@ WebSockets are long-lived TCP connections that enable bi-directional, real-time
1515
## Key benefits
1616

1717
- **Reduced Overhead**: Avoid overhead of repeated handshakes and TLS negotiations by maintaining a single, persistent connection.
18-
- **Provider Compatibility**: Works with all AI providers in AI Gateway. Even if your chosen provider doesn't support WebSockets, we handle it for you, managing the requests to your preferred AI provider.
18+
- **Provider Compatibility**: Works with all AI providers in AI Gateway. Even if your chosen provider does not support WebSockets, we handle it for you, managing the requests to your preferred AI provider.
1919

2020
## Setting up
2121

@@ -121,7 +121,7 @@ After this initial message, all streaming chunks are relayed in real-time to the
121121
}
122122
```
123123

124-
Once all chunks for a request have been streamed, AI Gateway sends a final message to signal the request's completion. For added flexibility, this message includes all the metadata again, even though it was initially provided at the start of the streaming process.
124+
Once all chunks for a request have been streamed, AI Gateway sends a final message to signal the completion of the request. For added flexibility, this message includes all the metadata again, even though it was initially provided at the start of the streaming process.
125125

126126
```json
127127
{

src/content/docs/ai-gateway/get-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Next, connect your AI provider to your gateway.
3030

3131
AI Gateway offers multiple endpoints for each Gateway you create - one endpoint per provider, and one Universal Endpoint.
3232

33-
Additionally, AI Gateway has a [WebSockets API](/ai-gateway/configuration/websockets-api/) which provides a single persistent connection, enabling continuous communication. This API supports all AI providers connected to AI Gateway, including those that don't natively support WebSockets.
33+
Additionally, AI Gateway has a [WebSockets API](/ai-gateway/configuration/websockets-api/) which provides a single persistent connection, enabling continuous communication. This API supports all AI providers connected to AI Gateway, including those that do not natively support WebSockets.
3434

3535
Below is a list of our supported model providers:
3636

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The above will send a request to Workers AI Inference API, if it fails it will p
3333

3434
## Websockets API (beta)
3535

36-
The Universal Endpoint can also be accessed via a [WebSockets API](/ai-gateway/configuration/websockets-api/) which provides a single persistent connection, enabling continuous communication. This API supports all AI providers connected to AI Gateway, including those that don't natively support WebSockets.
36+
The Universal Endpoint can also be accessed via a [WebSockets API](/ai-gateway/configuration/websockets-api/) which provides a single persistent connection, enabling continuous communication. This API supports all AI providers connected to AI Gateway, including those that do not natively support WebSockets.
3737

3838
## Example request
3939

0 commit comments

Comments
 (0)