Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

add banner about github free tier models (#8575)

Shahmir Varqhab8dc66c3a51c
diff --git a/frontend/src/components/app-config/ai-config.tsx b/frontend/src/components/app-config/ai-config.tsx
index 0133c91d7d..abd90217a5 100644
--- a/frontend/src/components/app-config/ai-config.tsx
+++ b/frontend/src/components/app-config/ai-config.tsx
@@ -60,6 +60,7 @@ import {
AccordionItem,
AccordionTrigger,
} from "../ui/accordion";
+import { Alert, AlertDescription } from "../ui/alert";
import { Button } from "../ui/button";
import { Checkbox } from "../ui/checkbox";
import { DropdownMenuSeparator } from "../ui/dropdown-menu";
@@ -966,6 +967,15 @@ export const AiProvidersConfig: React.FC<AiConfigProps> = ({
provider="github"
isConfigured={hasValue("ai.github.api_key")}
>
+ <Alert variant="warning" className="py-1.5 px-3 text-xs">
+ <AlertDescription>
+ Free tier models have low token limits which can cause errors with
+ larger prompts.{" "}
+ <ExternalLink href="https://docs.github.com/en/github-models/prototyping-with-ai-models#rate-limits">
+ Learn more
+ </ExternalLink>
+ </AlertDescription>
+ </Alert>
<ApiKey
form={form}
config={config}
diff --git a/frontend/src/components/ui/links.tsx b/frontend/src/components/ui/links.tsx
index ae451baa73..bdc6d0a915 100644
--- a/frontend/src/components/ui/links.tsx
+++ b/frontend/src/components/ui/links.tsx
@@ -8,6 +8,7 @@ export const ExternalLink = ({
| `https://console.anthropic.com/${string}`
| `https://aistudio.google.com/${string}`
| `https://github.com/${string}`
+ | `https://docs.github.com/${string}`
| `https://openrouter.ai/${string}`
| `https://docs.marimo.io/${string}`
| `https://docs.python.org/${string}`