Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

chore: add label remote or local mode, show cloude code logo

Faisal Amirbec0e083db05
diff --git a/web-app/src/routes/settings/local-api-server.tsx b/web-app/src/routes/settings/local-api-server.tsx
index 7cf12a7c1..0fde8277b 100644
--- a/web-app/src/routes/settings/local-api-server.tsx
+++ b/web-app/src/routes/settings/local-api-server.tsx
@@ -621,7 +621,60 @@ function LocalAPIServerContent() {
</Card>
{/* Helper Card */}
- <Card title="Run with your Claude Code">
+ <Card
+ header={
+ <div className="mb-3 flex w-full items-center gap-3">
+ <svg
+ width="20"
+ height="20"
+ viewBox="0 0 99 72"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ className="shrink-0"
+ >
+ <path
+ d="M9 0H90V54H9V0Z"
+ fill="#D77757"
+ />
+ <path
+ d="M0 18H9V36H0V18Z"
+ fill="#D77757"
+ />
+ <path
+ d="M18 18H27V27H18V18Z"
+ fill="black"
+ />
+ <path
+ d="M72 18H81V27H72V18Z"
+ fill="black"
+ />
+ <path
+ d="M90 18H99V36H90V18Z"
+ fill="#D77757"
+ />
+ <path
+ d="M9 54H18V72H9V54Z"
+ fill="#D77757"
+ />
+ <path
+ d="M63 54H72V72H63V54Z"
+ fill="#D77757"
+ />
+ <path
+ d="M27 54H36V72H27V54Z"
+ fill="#D77757"
+ />
+ <path
+ d="M81 54H90V72H81V54Z"
+ fill="#D77757"
+ />
+ </svg>
+ <h1 className="text-foreground font-studio font-medium text-base">
+ Run with your Claude Code
+ </h1>
+ </div>
+ }
+ >
<CardItem
title="Large Model"
description="Opus"
@@ -838,14 +891,24 @@ function HelperModelSelector({
<Popover open={open} onOpenChange={handleOpenChange}>
<PopoverTrigger asChild>
<Button variant="outline" size="sm" className="max-w-[280px]">
- <span
- className={cn(
- 'truncate leading-normal'
+ <span className="flex items-center gap-2 truncate leading-normal">
+ {selectedModel && currentModel ? (
+ <>
+ <span
+ className={cn(
+ 'text-[10px] px-1.5 py-0.5 rounded-full shrink-0',
+ currentModel.isLocal
+ ? 'bg-emerald-500/10 text-emerald-600'
+ : 'bg-blue-500/10 text-blue-600'
+ )}
+ >
+ {currentModel.isLocal ? 'Local' : 'Remote'}
+ </span>
+ <span>{formatModelWithSize(currentModel)}</span>
+ </>
+ ) : (
+ placeholder
)}
- >
- {selectedModel && currentModel
- ? formatModelWithSize(currentModel)
- : placeholder}
</span>
<IconChevronDown className="size-4 shrink-0 text-muted-foreground" />
</Button>