Skip to content

Commit 08b5ebb

Browse files
committed
[Workers AI] Remove trailing spaces
1 parent 0139666 commit 08b5ebb

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

src/content/docs/workers-ai/function-calling/embedded/api-reference.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ This wrapper method enables you to do embedded function calling. You pass it the
1919

2020
* `AI Binding`Ai
2121
* The AI binding, such as `env.AI`.
22-
* `model`BaseAiTextGenerationModels
22+
* `model`BaseAiTextGenerationModels
2323
* The ID of the model that supports function calling. For example, `@hf/nousresearch/hermes-2-pro-mistral-7b`.
24-
* `input`Object
25-
* `messages`RoleScopedChatInput\[]
26-
* `tools`AiTextGenerationToolInputWithFunction\[]
27-
* `config`Object
28-
* `streamFinalResponse`boolean optional
29-
* `maxRecursiveToolRuns`number optional
30-
* `strictValidation`boolean optional
31-
* `verbose`boolean optional
24+
* `input`Object
25+
* `messages`RoleScopedChatInput\[]
26+
* `tools`AiTextGenerationToolInputWithFunction\[]
27+
* `config`Object
28+
* `streamFinalResponse`boolean optional
29+
* `maxRecursiveToolRuns`number optional
30+
* `strictValidation`boolean optional
31+
* `verbose`boolean optional
3232
* `trimFunction`boolean optional - For the `trimFunction`, you can pass it `autoTrimTools`, which is another helper method we've devised to automatically choose the correct tools (using an LLM) before sending it off for inference. This means that your final inference call will have fewer input tokens.
3333

3434

@@ -40,11 +40,11 @@ This method lets you automatically create tool schemas based on OpenAPI specs, s
4040

4141

4242

43-
* `spec`string
43+
* `spec`string
4444
* The OpenAPI specification in either JSON or YAML format, or a URL to a remote OpenAPI specification.
4545
* `config`Config optional - Configuration options for the createToolsFromOpenAPISpec function
46-
* `overrides`ConfigRule\[] optional
47-
* `matchPatterns`RegExp\[] optional
46+
* `overrides`ConfigRule\[] optional
47+
* `matchPatterns`RegExp\[] optional
4848
* `options` Object optional \{
4949
`verbose` boolean optional
5050
\}

src/content/docs/workers-ai/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ import { CardGrid, Description, Feature, LinkTitleCard, Plan, RelatedProduct, Re
1515

1616
<Description>
1717

18-
Run machine learning models, powered by serverless GPUs, on Cloudflare's global network.
18+
Run machine learning models, powered by serverless GPUs, on Cloudflare's global network.
1919
</Description>
2020

2121
<Plan type="workers-all" />
2222

2323
Workers AI allows you to run AI models in a serverless way, without having to worry about scaling, maintaining, or paying for unused infrastructure. You can invoke models running on GPUs on Cloudflare's network from your own code — from [Workers](/workers/), [Pages](/pages/), or anywhere via [the Cloudflare API](/api/resources/ai/methods/run/).
2424

25-
Workers AI gives you access to:
25+
Workers AI gives you access to:
2626
- **50+ [open-source models](/workers-ai/models/)**, available as a part of our model catalog
27-
- Serverless, **pay-for-what-you-use** [pricing model](/workers-ai/platform/pricing/)
27+
- Serverless, **pay-for-what-you-use** [pricing model](/workers-ai/platform/pricing/)
2828
- All as part of a **fully-featured developer platform**, including [AI Gateway](/ai-gateway/), [Vectorize](/vectorize/), [Workers](/workers/) and more...
2929

3030
<div>

src/content/docs/workers-ai/tutorials/fine-tune-models-with-autotrain.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ In order to give your AutoTrain ample memory, you will need to need to choose a
4747

4848
:::note
4949

50-
These GPUs will cost money. A typical AutoTrain session typically costs less than $1 USD.
50+
These GPUs will cost money. A typical AutoTrain session typically costs less than $1 USD.
5151
:::
5252

5353
The notebook contains a few interactive sections that we will need to change.
@@ -82,7 +82,7 @@ We only need to change a few of these fields to ensure things work on Cloudflare
8282

8383
At the time of this writing, changing the quantization field breaks the code generation. You may need to edit the code and put quotes around the value.
8484

85-
Change the line that says `quantization = none` to `quantization = "none"`.
85+
Change the line that says `quantization = none` to `quantization = "none"`.
8686
:::
8787

8888
## 3. Upload your CSV file to the Notebook

src/content/docs/workers-ai/tutorials/image-generation-playground/image-generator-flux-newmodels.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ next: true
2020

2121
import { Details, DirectoryListing, Stream } from "~/components"
2222

23-
In part 2, Kristian expands upon the existing environment built in part 1, by showing you how to integrate new AI models and introduce new parameters that allow you to customize how images are generated.
23+
In part 2, Kristian expands upon the existing environment built in part 1, by showing you how to integrate new AI models and introduce new parameters that allow you to customize how images are generated.
2424

2525
<Stream videoId="167ba3a7a86f966650f3315e6cb02e0d" videoTitle="Add New AI Models to your Playground (Part 2)" thumbnailTimeOrURL="13.5s" moreVideosLink="false" />
2626

0 commit comments

Comments
 (0)