diff --git a/src/components/pages/ComponentsModelsPage.tsx b/src/components/pages/ComponentsModelsPage.tsx
index e4301d0..e5269eb 100644
--- a/src/components/pages/ComponentsModelsPage.tsx
+++ b/src/components/pages/ComponentsModelsPage.tsx
@@ -7,6 +7,7 @@ import {
ChevronRight,
Eye,
EyeOff,
+ HelpCircle,
Loader2,
MoreHorizontal,
Pencil,
@@ -41,7 +42,12 @@ import {
DialogHeader,
DialogTitle,
} from "@/components/ui/dialog";
-import { useState } from "react";
+import {
+ Popover,
+ PopoverContent,
+ PopoverTrigger,
+} from "@/components/ui/popover";
+import { useState, type ReactNode } from "react";
type ModelType = "LLM" | "ASR" | "TTS" | "Realtime" | "Embedding";
@@ -529,24 +535,40 @@ export function ComponentsModelsPage() {
-
@@ -691,3 +741,54 @@ export function ComponentsModelsPage() {
);
}
+
+function FieldLabel({
+ htmlFor,
+ children,
+ hint,
+}: {
+ htmlFor?: string;
+ children: ReactNode;
+ hint: { description: string; example?: string };
+}) {
+ return (
+
+ {children}
+
+
+ );
+}
+
+function HelpHint({
+ description,
+ example,
+}: {
+ description: string;
+ example?: string;
+}) {
+ return (
+
+
+
+
+
+ {description}
+ {example && (
+
+ 填写样例:
+ {example}
+
+ )}
+
+
+ );
+}