浏览代码

Merge pull request #6938 from open-webui/dev

dev
Timothy Jaeryang Baek 5 月之前
父节点
当前提交
aaba41339e

+ 3 - 3
src/lib/components/chat/Messages/CitationsModal.svelte

@@ -13,9 +13,9 @@
 	let mergedDocuments = [];
 
 	function calculatePercentage(distance: number) {
-		if (distance < 0) return 100;
-		if (distance > 1) return 0;
-		return Math.round((1 - distance) * 10000) / 100;
+		if (distance < 0) return 0;
+		if (distance > 1) return 100;
+		return Math.round(distance * 10000) / 100;
 	}
 
 	function getRelevanceColor(percentage: number) {

+ 8 - 6
src/lib/components/workspace/Functions.svelte

@@ -50,12 +50,14 @@
 	let showDeleteConfirm = false;
 
 	let filteredItems = [];
-	$: filteredItems = $functions.filter(
-		(f) =>
-			query === '' ||
-			f.name.toLowerCase().includes(query.toLowerCase()) ||
-			f.id.toLowerCase().includes(query.toLowerCase())
-	);
+	$: filteredItems = $functions
+		.filter(
+			(f) =>
+				query === '' ||
+				f.name.toLowerCase().includes(query.toLowerCase()) ||
+				f.id.toLowerCase().includes(query.toLowerCase())
+		)
+		.sort((a, b) => a.type.localeCompare(b.type) || a.name.localeCompare(b.name));
 
 	const shareHandler = async (func) => {
 		const item = await getFunctionById(localStorage.token, func.id).catch((error) => {

+ 21 - 21
src/lib/i18n/locales/tr-TR/translation.json

@@ -19,20 +19,20 @@
 	"Activate this command by typing \"/{{COMMAND}}\" to chat input.": "",
 	"Active Users": "Aktif Kullanıcılar",
 	"Add": "Ekle",
-	"Add a model ID": "",
+	"Add a model ID": "Bir model kimliği ekleyin",
 	"Add a short description about what this model does": "Bu modelin ne yaptığı hakkında kısa bir açıklama ekleyin",
 	"Add a tag": "Bir etiket ekleyin",
 	"Add Arena Model": "",
-	"Add Connection": "",
-	"Add Content": "",
-	"Add content here": "",
+	"Add Connection": "Bağlantı Ekle",
+	"Add Content": "İçerik Ekle",
+	"Add content here": "Buraya içerik ekleyin",
 	"Add custom prompt": "Özel prompt ekleyin",
 	"Add Files": "Dosyalar Ekle",
 	"Add Memory": "Bellek Ekle",
 	"Add Model": "Model Ekle",
 	"Add Tag": "Etiket Ekle",
 	"Add Tags": "Etiketler Ekle",
-	"Add text content": "",
+	"Add text content": "Metin içeriği ekleme",
 	"Add User": "Kullanıcı Ekle",
 	"Adjusting these settings will apply changes universally to all users.": "Bu ayarların yapılması, değişiklikleri tüm kullanıcılara evrensel olarak uygulayacaktır.",
 	"admin": "yönetici",
@@ -42,7 +42,7 @@
 	"Admins have access to all tools at all times; users need tools assigned per model in the workspace.": "Yöneticiler her zaman tüm araçlara erişebilir; kullanıcıların çalışma alanındaki model başına atanmış araçlara ihtiyacı vardır.",
 	"Advanced Parameters": "Gelişmiş Parametreler",
 	"Advanced Params": "Gelişmiş Parametreler",
-	"All chats": "",
+	"All chats": "Tüm sohbetler",
 	"All Documents": "Tüm Belgeler",
 	"Allow Chat Deletion": "Sohbet Silmeye İzin Ver",
 	"Allow Chat Editing": "Soğbet Düzenlemeye İzin Ver",
@@ -60,25 +60,25 @@
 	"API Key": "API Anahtarı",
 	"API Key created.": "API Anahtarı oluşturuldu.",
 	"API keys": "API anahtarları",
-	"Application DN": "",
-	"Application DN Password": "",
+	"Application DN": "Uygulama DN",
+	"Application DN Password": "Uygulama DN Parola",
 	"April": "Nisan",
 	"Archive": "Arşiv",
 	"Archive All Chats": "Tüm Sohbetleri Arşivle",
 	"Archived Chats": "Arşivlenmiş Sohbetler",
-	"archived-chat-export": "",
+	"archived-chat-export": "arşivlenmiş-sohbet-aktarımı",
 	"Are you sure you want to unarchive all archived chats?": "",
 	"Are you sure?": "Emin misiniz?",
 	"Arena Models": "",
 	"Artifacts": "",
-	"Ask a question": "",
-	"Assistant": "",
+	"Ask a question": "Bir soru sorun",
+	"Assistant": "Asistan",
 	"Attach file": "Dosya ekle",
 	"Attention to detail": "Ayrıntılara dikkat",
-	"Attribute for Username": "",
+	"Attribute for Username": "Kullanıcı Adı için Özellik",
 	"Audio": "Ses",
 	"August": "Ağustos",
-	"Authenticate": "",
+	"Authenticate": "Kimlik Doğrulama",
 	"Auto-Copy Response to Clipboard": "Yanıtı Panoya Otomatik Kopyala",
 	"Auto-playback response": "Yanıtı otomatik oynatma",
 	"Automatic1111": "",
@@ -107,7 +107,7 @@
 	"Capabilities": "Yetenekler",
 	"Certificate Path": "",
 	"Change Password": "Parola Değiştir",
-	"Character": "",
+	"Character": "Karakter",
 	"Chart new frontiers": "",
 	"Chat": "Sohbet",
 	"Chat Background Image": "Sohbet Arka Plan Resmi",
@@ -127,12 +127,12 @@
 	"Ciphers": "",
 	"Citation": "Alıntı",
 	"Clear memory": "Belleği temizle",
-	"click here": "",
-	"Click here for filter guides.": "",
+	"click here": "buraya tıklayın",
+	"Click here for filter guides.": "Filtre kılavuzları için buraya tıklayın.",
 	"Click here for help.": "Yardım için buraya tıklayın.",
 	"Click here to": "Şunu yapmak için buraya tıklayın:",
 	"Click here to download user import template file.": "Kullanıcı içe aktarma şablon dosyasını indirmek için buraya tıklayın.",
-	"Click here to learn more about faster-whisper and see the available models.": "",
+	"Click here to learn more about faster-whisper and see the available models.": "faster-whisper hakkında daha fazla bilgi edinmek ve mevcut modelleri görmek için buraya tıklayın.",
 	"Click here to select": "Seçmek için buraya tıklayın",
 	"Click here to select a csv file.": "Bir CSV dosyası seçmek için buraya tıklayın.",
 	"Click here to select a py file.": "Bir py dosyası seçmek için buraya tıklayın.",
@@ -153,7 +153,7 @@
 	"Command": "Komut",
 	"Completions": "",
 	"Concurrent Requests": "Eşzamanlı İstekler",
-	"Configure": "",
+	"Configure": "Yapılandırma",
 	"Confirm": "Onayla",
 	"Confirm Password": "Parolayı Onayla",
 	"Confirm your action": "İşleminizi onaylayın",
@@ -164,11 +164,11 @@
 	"Context Length": "Bağlam Uzunluğu",
 	"Continue Response": "Yanıta Devam Et",
 	"Continue with {{provider}}": "{{provider}} ile devam et",
-	"Continue with Email": "",
-	"Continue with LDAP": "",
+	"Continue with Email": "E-posta ile devam edin",
+	"Continue with LDAP": "LDAP ile devam edin",
 	"Control how message text is split for TTS requests. 'Punctuation' splits into sentences, 'paragraphs' splits into paragraphs, and 'none' keeps the message as a single string.": "Mesaj metninin TTS istekleri için nasıl bölüneceğini kontrol edin. 'Noktalama' cümlelere, 'paragraflar' paragraflara böler ve 'hiçbiri' mesajı tek bir dize olarak tutar.",
 	"Controls": "Kontroller",
-	"Controls the balance between coherence and diversity of the output. A lower value will result in more focused and coherent text. (Default: 5.0)": "",
+	"Controls the balance between coherence and diversity of the output. A lower value will result in more focused and coherent text. (Default: 5.0)": "Çıktının tutarlılığı ve çeşitliliği arasındaki dengeyi kontrol eder. Daha düşük bir değer, daha odaklanmış ve tutarlı bir metinle sonuçlanacaktır. (Varsayılan: 5.0)",
 	"Copied": "Kopyalandı",
 	"Copied shared chat URL to clipboard!": "Paylaşılan sohbet URL'si panoya kopyalandı!",
 	"Copied to clipboard": "Panoya kopyalandı",