mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 20:00:47 +00:00
Fix bug
This commit is contained in:
@@ -472,7 +472,7 @@ export default function APIPageClient({ machineId }) {
|
||||
<Input
|
||||
value={currentEndpoint}
|
||||
readOnly
|
||||
className={`flex-1 font-mono text-sm ${tunnelEnabled ? "animate-border-glow" : ""}`}
|
||||
className={`flex-1 font-mono text-sm`}
|
||||
/>
|
||||
<Button
|
||||
variant="secondary"
|
||||
@@ -483,6 +483,20 @@ export default function APIPageClient({ machineId }) {
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
{/* Direct local endpoint */}
|
||||
<div className="flex items-center gap-2 mt-1">
|
||||
<span className="text-xs text-text-muted shrink-0">Direct</span>
|
||||
<span className="material-symbols-outlined text-text-muted text-[12px]">arrow_forward</span>
|
||||
<code className="flex-1 text-xs text-text-muted font-mono truncate">{baseUrl}/chat/completions</code>
|
||||
<button
|
||||
onClick={() => copy(`${baseUrl}/chat/completions`, "direct_url")}
|
||||
className="p-1 text-text-muted hover:text-primary transition-colors shrink-0"
|
||||
title="Copy direct endpoint"
|
||||
>
|
||||
<span className="material-symbols-outlined text-[14px]">{copied === "direct_url" ? "check" : "content_copy"}</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{/* Tunnel Status */}
|
||||
{tunnelStatus && (
|
||||
<div className={`mt-3 p-2 rounded text-sm ${
|
||||
|
||||
Reference in New Issue
Block a user