mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 06:18:00 +00:00
Update database labels for clarity and change database name to SQLite
This commit is contained in:
2 files changed
+6
-6
No files matched your search
@@ -107,10 +107,10 @@ public partial class Information : MSGComponentBase
|
||||
/// </remarks>
|
||||
private string DatabaseHeaderText(DatabaseSection section)
|
||||
{
|
||||
var (nameLabel, versionLabel) = section.Role switch
|
||||
var nameLabel = section.Role switch
|
||||
{
|
||||
DatabaseRole.VECTOR_STORE => (T("Vector store"), T("Vector store version")),
|
||||
_ => (T("Local RAG index"), T("Local RAG index version"))
|
||||
DatabaseRole.VECTOR_STORE => T("Vector database"),
|
||||
_ => T("Index database"),
|
||||
};
|
||||
|
||||
if (section.Client is null)
|
||||
@@ -124,7 +124,7 @@ public partial class Information : MSGComponentBase
|
||||
|
||||
return section.Client.Status switch
|
||||
{
|
||||
DatabaseClientStatus.AVAILABLE when !string.IsNullOrWhiteSpace(version) => $"{versionLabel}: {section.Client.Name} v{version}",
|
||||
DatabaseClientStatus.AVAILABLE when !string.IsNullOrWhiteSpace(version) => $"{nameLabel}: {section.Client.Name} v{version}",
|
||||
DatabaseClientStatus.AVAILABLE => $"{nameLabel}: {section.Client.Name}",
|
||||
DatabaseClientStatus.STARTING => $"{nameLabel}: {section.Client.Name} - {T("starting")}",
|
||||
_ => $"{nameLabel}: {section.Client.Name} - {T("not available")}"
|
||||
|
||||
Reference in new issue
Block a user