-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: first model provider banners ux
chore: add link to model provider site chore: add appropriate links to model providers and otto azure doc chore: add Default Model button & user friendly labels feat: open default model aliases on config completion
- Loading branch information
1 parent
ab0b558
commit 3646007
Showing
10 changed files
with
324 additions
and
93 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
ui/admin/app/components/agent/FirstModelProviderBanner.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Link } from "@remix-run/react"; | ||
import { $path } from "remix-routes"; | ||
|
||
import { TypographyP } from "~/components/Typography"; | ||
import { OttoLogo } from "~/components/branding/OttoLogo"; | ||
import { Button } from "~/components/ui/button"; | ||
|
||
export function FirstModelProviderBanner() { | ||
return ( | ||
<div className="w-full"> | ||
<div className="flex justify-center w-full"> | ||
<div className="flex flex-row p-4 min-h-36 justify-end items-center w-[calc(100%-4rem)] rounded-sm mx-8 mt-4 bg-secondary relative overflow-hidden gap-4 max-w-screen-md"> | ||
<OttoLogo | ||
hideText | ||
classNames={{ | ||
root: "absolute opacity-45 top-[-5rem] left-[-7.5rem]", | ||
image: "h-80 w-80", | ||
}} | ||
/> | ||
<div className="flex flex-col pl-48"> | ||
<TypographyP className="font-semibold text-2xl mb-0.5"> | ||
Ready to create your first Agent? | ||
</TypographyP> | ||
<TypographyP className="text-sm font-light mb-2"> | ||
You're almost there! To start creating or using{" "} | ||
agents, you'll need access to a LLM (Large | ||
Language Model) <b>Model Provider</b>. Luckily, we | ||
support a variety of providers to help get you | ||
started. | ||
</TypographyP> | ||
<Button className="mt-0 w-fit px-10"> | ||
<Link to={$path("/model-providers")}> | ||
Get Started | ||
</Link> | ||
</Button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
ui/admin/app/components/model-providers/ModelProviderBanner.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { CircleAlert } from "lucide-react"; | ||
|
||
import { TypographyP } from "~/components/Typography"; | ||
|
||
export function ModelProviderBanner() { | ||
return ( | ||
<div className="flex flex-row p-2 justify-start items-center w-[calc(100%-4rem)] rounded-sm bg-secondary relative overflow-hidden gap-2 max-w-screen-lg"> | ||
<CircleAlert className="text-warning" /> | ||
<div className="flex flex-col gap-1"> | ||
<TypographyP className="font-semibold text-xs"> | ||
To use Otto's features, you'll need to set up a | ||
Model Provider. Select and configure one below to get | ||
started! | ||
</TypographyP> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.