← Về thư mục
frontend/src/components/customize/ModelsTab.tsx
- Profile · type · L31-L31 — type Profile = Record;
- copy · function · L50-L52 — function copy(key: keyof (typeof COPY)["en"]): string
- profileKeyLabel · function · L59-L66 — function profileKeyLabel(p: Record): string
- LiveModel · type · L68-L68 — type LiveModel = { provider: string; model: string; baseUrl: string; hasKey: boolean };
- readLiveModel · function · L76-L88 — function readLiveModel(raw: unknown): LiveModel | null
- ModelsTab · function · L90-L356 — function ModelsTab()
- resetForm · function · L141-L148 — resetForm = ()
- startEdit · function · L150-L157 — startEdit = (p: Profile)
- runLocalScan · function · L159-L175 — runLocalScan = async (force: boolean)
- liveModelRow · function · L362-L386 — function liveModelRow(live: LiveModel, protocols: ProtocolOption[])
- LocalEndpointRow · function · L388-L456 — function LocalEndpointRow({ endpoint, profiles, }: { endpoint: { label: string; base_url: string; models: string[]; default_model: string; }; profiles: Profile[]; })
- ProfileRow · function · L458-L584 — function ProfileRow({ p, activeId, protocols, onEdit, }: { p: Profile; activeId: string; protocols: ProtocolOption[]; onEdit: () => void; })