mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
fix(context): address review - clarify threshold alignment, i18n strings, add test coverage
This commit is contained in:
@@ -147,14 +147,14 @@ export function ContextUsageRing({
|
||||
|
||||
<div className="mt-2 space-y-0.5">
|
||||
<div className="flex items-center justify-between text-[10px]">
|
||||
<span className="text-muted-foreground">Compress at</span>
|
||||
<span className="text-muted-foreground">{t("chat.contextCompressAt")}</span>
|
||||
<span className="tabular-nums">
|
||||
{formatTokens(usage.compress_at_tokens)}
|
||||
</span>
|
||||
</div>
|
||||
{usage.summarize_at_tokens != null && usage.summarize_at_tokens > 0 && (
|
||||
<div className="flex items-center justify-between text-[10px]">
|
||||
<span className="text-muted-foreground">Summarize at</span>
|
||||
<span className="text-muted-foreground">{t("chat.contextSummarizeAt")}</span>
|
||||
<span className="tabular-nums">
|
||||
{formatTokens(usage.summarize_at_tokens)}
|
||||
</span>
|
||||
|
||||
@@ -96,6 +96,8 @@
|
||||
"sendHint": "পাঠাতে Enter চাপুন\nনতুন লাইনের জন্য Shift + Enter",
|
||||
"contextTitle": "প্রসঙ্গ",
|
||||
"contextDetail": "বিস্তারিত দেখুন",
|
||||
"contextCompressAt": "Compress at",
|
||||
"contextSummarizeAt": "Summarize at",
|
||||
"attachImage": "ছবি যোগ করুন",
|
||||
"removeImage": "ছবি সরান",
|
||||
"uploadedImage": "আপলোড করা ছবি",
|
||||
|
||||
@@ -94,6 +94,8 @@
|
||||
"sendHint": "Enter pro odeslání\nShift + Enter pro nový řádek",
|
||||
"contextTitle": "Kontext",
|
||||
"contextDetail": "Zobrazit detail",
|
||||
"contextCompressAt": "Komprimovat při",
|
||||
"contextSummarizeAt": "Shrnout při",
|
||||
"attachImage": "Přidat obrázky",
|
||||
"dropImagesActive": "Uvolněním přidáte obrázky",
|
||||
"removeImage": "Odebrat obrázek",
|
||||
|
||||
@@ -96,6 +96,8 @@
|
||||
"sendHint": "Press Enter to send\nShift + Enter for a new line",
|
||||
"contextTitle": "Context",
|
||||
"contextDetail": "View Details",
|
||||
"contextCompressAt": "Compress at",
|
||||
"contextSummarizeAt": "Summarize at",
|
||||
"attachImage": "Add images",
|
||||
"dropImagesActive": "Release to add images",
|
||||
"removeImage": "Remove image",
|
||||
|
||||
@@ -96,6 +96,8 @@
|
||||
"sendHint": "Pressione Enter para enviar\nShift + Enter para nova linha",
|
||||
"contextTitle": "Contexto",
|
||||
"contextDetail": "Ver Detalhes",
|
||||
"contextCompressAt": "Comprimir em",
|
||||
"contextSummarizeAt": "Resumir em",
|
||||
"attachImage": "Adicionar imagens",
|
||||
"dropImagesActive": "Solte para adicionar imagens",
|
||||
"removeImage": "Remover imagem",
|
||||
|
||||
@@ -96,6 +96,8 @@
|
||||
"sendHint": "按 Enter 发送\nShift + Enter 换行",
|
||||
"contextTitle": "上下文",
|
||||
"contextDetail": "查看详情",
|
||||
"contextCompressAt": "压缩阈值",
|
||||
"contextSummarizeAt": "摘要阈值",
|
||||
"attachImage": "添加图片",
|
||||
"dropImagesActive": "松开以添加图片",
|
||||
"removeImage": "移除图片",
|
||||
|
||||
Reference in New Issue
Block a user