From 259d40b60276cff5c1b02b107550b7307a40c661 Mon Sep 17 00:00:00 2001 From: Meaghan Choi Date: Tue, 24 Sep 2024 16:55:16 -0400 Subject: [PATCH] Update aside styling and remove titles from workers-ai asides --- src/asides.css | 15 +++++++++------ .../partials/workers-ai/custom_requirements.mdx | 4 +--- src/content/partials/workers-ai/file_issues.mdx | 5 ++--- .../partials/workers-ai/openai-compatibility.mdx | 1 - 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/asides.css b/src/asides.css index 71751b68cc447f..68553d32e9f02d 100644 --- a/src/asides.css +++ b/src/asides.css @@ -1,6 +1,6 @@ .starlight-aside { border: unset; - border-radius: 4px; + border-radius: 0.25rem; &.starlight-aside--note { background-color: rgb(236, 244, 255); @@ -8,20 +8,23 @@ &.starlight-aside--caution { background-color: rgb(255, 248, 228); - } .starlight-aside__title { - margin-left: 30px; + margin-left: 2rem; + margin-bottom: 0.25rem; + gap: 0.75rem; + font-size: 0.875rem; svg { - margin-left: -30px; + margin-left: -2rem; } } .starlight-aside__content { margin-top: unset; - margin-left: 30px; + margin-left: 2rem; + font-size: 0.875rem; } } @@ -33,4 +36,4 @@ .starlight-aside--caution { background-color: rgb(98, 73, 10); } -} \ No newline at end of file +} diff --git a/src/content/partials/workers-ai/custom_requirements.mdx b/src/content/partials/workers-ai/custom_requirements.mdx index 8a34dddf8cb8d8..3a0b2ed816d14e 100644 --- a/src/content/partials/workers-ai/custom_requirements.mdx +++ b/src/content/partials/workers-ai/custom_requirements.mdx @@ -3,10 +3,8 @@ --- -:::note[Custom requirements] - +:::note If you have custom requirements like private custom models or higher limits, complete the [Custom Requirements Form](https://forms.gle/axnnpGDb6xrmR31T6). Cloudflare will contact you with next steps. - ::: diff --git a/src/content/partials/workers-ai/file_issues.mdx b/src/content/partials/workers-ai/file_issues.mdx index 3f30780c51c35e..c61547f4eed4f5 100644 --- a/src/content/partials/workers-ai/file_issues.mdx +++ b/src/content/partials/workers-ai/file_issues.mdx @@ -3,10 +3,9 @@ --- -:::caution[Workers AI is now Generally Available] +:::caution - -To report bugs or give feedback, go to the [#workers-ai Discord channel](https://discord.cloudflare.com). If you are having issues with Wrangler, report issues in the [Wrangler GitHub repository](https://github.com/cloudflare/workers-sdk/issues/new/choose). +Workers AI is now Generally Available. To report bugs or give feedback, go to the [#workers-ai Discord channel](https://discord.cloudflare.com). If you are having issues with Wrangler, report issues in the [Wrangler GitHub repository](https://github.com/cloudflare/workers-sdk/issues/new/choose). ::: diff --git a/src/content/partials/workers-ai/openai-compatibility.mdx b/src/content/partials/workers-ai/openai-compatibility.mdx index 94cc34e116a0f5..b727c30b1e8d80 100644 --- a/src/content/partials/workers-ai/openai-compatibility.mdx +++ b/src/content/partials/workers-ai/openai-compatibility.mdx @@ -1,6 +1,5 @@ --- {} - --- Workers AI supports OpenAI compatible endpoints for [text generation](/workers-ai/models/#text-generation) (`/v1/chat/completions`) and [text embedding models](/workers-ai/models/#text-embeddings) (`/v1/embeddings`). This allows you to use the same code as you would for your OpenAI commands, but swap in Workers AI easily.