Skip to content

Commit

Permalink
fix(web): Simplify the language for inference settings
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Oct 5, 2024
1 parent 1f7da9a commit 03e938a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ export function PromptRow({ prompt }: { prompt: ZPrompt }) {
);
}

export function CustomPrompts() {
export function TaggingRules() {
const { data: prompts, isLoading } = api.prompts.list.useQuery();

return (
<div className="mt-2 flex flex-col gap-2">
<div className="w-full text-xl font-medium sm:w-1/3">Custom Prompts</div>
<div className="w-full text-xl font-medium sm:w-1/3">Tagging Rules</div>
<p className="mb-1 text-xs italic text-muted-foreground">
Prompts that you add here will be included as rules to the model during
tag generation. You can view the final prompts in the prompt preview
Expand Down Expand Up @@ -312,9 +312,9 @@ export default function PromptsPage() {
<div className="rounded-md border bg-background p-4">
<div className="mb-2 flex flex-col gap-3">
<div className="w-full text-2xl font-medium sm:w-1/3">
Inference Settings
AI Settings
</div>
<CustomPrompts />
<TaggingRules />
</div>
</div>
<div className="mt-4 rounded-md border bg-background p-4">
Expand Down
10 changes: 5 additions & 5 deletions apps/web/app/dashboard/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ export default async function Settings() {
<UserDetails />
<ChangePassword />
</div>
<div className="mt-4 rounded-md border bg-background p-4">
<ImportExport />
</div>
<div className="mt-4 rounded-md border bg-background p-4">
<Link
className="flex items-center gap-2 text-lg font-medium"
href="/dashboard/settings/prompts"
href="/dashboard/settings/ai"
>
Inference Settings
AI Settings
<ExternalLink />
</Link>
</div>
<div className="mt-4 rounded-md border bg-background p-4">
<ImportExport />
</div>
<div className="mt-4 rounded-md border bg-background p-4">
<ApiKeySettings />
</div>
Expand Down

0 comments on commit 03e938a

Please sign in to comment.