Skip to content

Commit 20afee2

Browse files
committed
[Docs] Fix quotes in strings with variables
1 parent 3bf86ed commit 20afee2

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed

src/content/docs/ai-gateway/configuration/caching.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Enable and customize your gateway cache to serve requests directly from Cloudfla
1313

1414
:::note
1515

16-
Currently caching is supported only for text and image responses, and it applies only to identical requests.
16+
Currently caching is supported only for text and image responses, and it applies only to identical requests.
1717

1818
This is helpful for use cases when there are limited prompt options - for example, a support bot that asks "How can I help you?" and lets the user select an answer from a limited set of options works well with the current caching configuration.
1919
We plan on adding semantic search for caching in the future to improve cache hit rates.
@@ -73,7 +73,7 @@ As an example, when submitting a request to OpenAI, include the header in the fo
7373

7474
```bash title="Request skipping the cache"
7575
curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/openai/chat/completions \
76-
--header 'Authorization: Bearer $TOKEN' \
76+
--header "Authorization: Bearer $TOKEN" \
7777
--header 'Content-Type: application/json' \
7878
--header 'cf-aig-skip-cache: true' \
7979
--data ' {
@@ -98,7 +98,7 @@ As an example, when submitting a request to OpenAI, include the header in the fo
9898

9999
```bash title="Request to be cached for an hour"
100100
curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/openai/chat/completions \
101-
--header 'Authorization: Bearer $TOKEN' \
101+
--header "Authorization: Bearer $TOKEN" \
102102
--header 'Content-Type: application/json' \
103103
--header 'cf-aig-cache-ttl: 3600' \
104104
--data ' {

src/content/docs/ai-gateway/configuration/custom-costs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ In this example, if you have a negotiated price of $1 per million input tokens a
3232

3333
```bash title="Request with custom cost"
3434
curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/openai/chat/completions \
35-
--header 'Authorization: Bearer $TOKEN' \
35+
--header "Authorization: Bearer $TOKEN" \
3636
--header 'Content-Type: application/json' \
3737
--header 'cf-aig-custom-cost: {"per_token_in":0.000001,"per_token_out":0.000002}' \
3838
--data ' {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ In the example below, we use `cf-aig-collect-log` to bypass the default setting
3636

3737
```bash
3838
curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/openai/chat/completions \
39-
--header 'Authorization: Bearer $TOKEN' \
39+
--header "Authorization: Bearer $TOKEN" \
4040
--header 'Content-Type: application/json' \
4141
--header 'cf-aig-collect-log: false \
4242
--data ' {

src/content/docs/analytics/graphql-api/migration-guides/zone-analytics-colos.mdx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ pcx_content_type: reference
33
title: Zone Analytics Colos Endpoint to GraphQL Analytics
44
sidebar:
55
order: 13
6-
76
---
87

9-
import { Details } from "~/components"
8+
import { Details } from "~/components";
109

1110
This guide shows how you might migrate from the deprecated (and soon to be sunset) zone analytics API to the GraphQL API. It provides an example for a plausible use-case of the colos endpoint, then shows how that use-case is translated to the GraphQL API. It also explores features of the GraphQL API that make it more powerful than the API it replaces.
1211

@@ -18,8 +17,8 @@ curl -H "Authorization: Bearer $API_TOKEN" "https://api.cloudflare.com/client/v4
1817

1918
This query says:
2019

21-
* Given an `API_TOKEN` which has Analytics Read access to `ZONE_ID`.
22-
* Fetch colos analytics for `ZONE_ID` with a time range that starts on
20+
- Given an `API_TOKEN` which has Analytics Read access to `ZONE_ID`.
21+
- Fetch colos analytics for `ZONE_ID` with a time range that starts on
2322
`2020-12-10T00:00:00Z` (`since` parameter) to now.
2423

2524
The question that we want to answer is: "What is the number of requests for ZHR per hour?" Using the colos endpoint response data and some wrangling by jq we can answer that question with this command:
@@ -57,7 +56,6 @@ This selects only lines that contain more than 0 requests and the `colo_id` is Z
5756

5857
The final data we get looks like the following response:
5958

60-
6159
<Details header="Response">
6260

6361
```json
@@ -75,7 +73,6 @@ The final data we get looks like the following response:
7573
...
7674
```
7775

78-
7976
</Details>
8077

8178
How do we get the same result using the GraphQL API?
@@ -112,7 +109,7 @@ The following is a GraphQL API query to retrieve the data we need to answer the
112109
Then we can run it with curl:
113110

114111
```bash
115-
curl -X POST -H 'Authorization: Bearer $API_TOKEN' https://api.cloudflare.com/client/v4/graphql -d "@./coloGroups.json" > graphqlColoGroupsResponse.json
112+
curl -X POST -H "Authorization: Bearer $API_TOKEN" https://api.cloudflare.com/client/v4/graphql -d "@./coloGroups.json" > graphqlColoGroupsResponse.json
116113
```
117114

118115
We can answer our question in the same way as before using jq:

src/content/docs/cloudflare-one/connections/connect-devices/user-side-certificates/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Send a `PUT` request to the [Update Zero Trust account configuration](/api/resou
112112

113113
```sh
114114
curl --request PUT \
115-
'https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/configuration' \
115+
"https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/configuration" \
116116
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
117117
--header "Content-Type: application/json" \
118118
--data '{

0 commit comments

Comments
 (0)