fix: update Qwen OAuth URLs from chat.qwen.ai to qwen.ai (closes #572) (#683)

* fix: make version update banner clickable to copy install command (closes #598)

* fix: resolve ollama-local baseUrl from providerSpecificData.baseUrl for remote Ollama hosts (closes #578)

* fix: add Ollama Cloud to usage/quota tracking (closes #681)

* fix: update Qwen OAuth URLs from chat.qwen.ai to qwen.ai per issue #572
This commit is contained in:
Anurag Saxena 2026-04-21 23:32:28 -04:00 committed by GitHub
parent 37f7e97348
commit 94ab0d715d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 67 additions and 6 deletions

View file

@ -7,6 +7,7 @@ import { usePathname } from "next/navigation";
import { cn } from "@/shared/utils/cn";
import { APP_CONFIG } from "@/shared/constants/config";
import { MEDIA_PROVIDER_KINDS } from "@/shared/constants/providers";
import { useCopyToClipboard } from "@/shared/hooks/useCopyToClipboard";
import Button from "./Button";
import { ConfirmModal } from "./Modal";
@ -41,6 +42,9 @@ export default function Sidebar({ onClose }) {
const [isDisconnected, setIsDisconnected] = useState(false);
const [updateInfo, setUpdateInfo] = useState(null);
const [enableTranslator, setEnableTranslator] = useState(false);
const { copied, copy } = useCopyToClipboard(2000);
const INSTALL_CMD = "npm install -g 9router@latest";
useEffect(() => {
fetch("/api/settings")
@ -100,14 +104,18 @@ export default function Sidebar({ onClose }) {
</div>
</Link>
{updateInfo && (
<div className="flex flex-col gap-0.5">
<button
onClick={() => copy(INSTALL_CMD)}
title="Click to copy install command"
className="flex flex-col gap-0.5 text-left hover:opacity-80 transition-opacity cursor-pointer rounded p-1 -m-1"
>
<span className="text-xs font-semibold text-green-600 dark:text-amber-500">
New version available: v{updateInfo.latestVersion}
</span>
<code className="text-[10px] text-green-600/80 dark:text-amber-400/70 font-mono select-all">
npm install -g 9router@latest
{copied ? "✓ copied!" : INSTALL_CMD}
</code>
</div>
</button>
)}
</div>