Skip to content

Commit c908973

Browse files
authored
Merge pull request #1227 from LykosAI/main
Add dialog
2 parents 304a2b0 + b63a628 commit c908973

File tree

8 files changed

+108
-2
lines changed

8 files changed

+108
-2
lines changed

StabilityMatrix.Avalonia/Controls/Inference/PromptCard.axaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
<Button.Flyout>
9494
<controls:BetterFlyout>
9595
<Grid ColumnDefinitions="*, Auto" RowDefinitions="Auto, Auto, Auto, Auto, Auto, Auto, Auto, Auto">
96-
9796
<TextBlock
9897
Grid.Row="0"
9998
Grid.Column="0"
@@ -103,6 +102,14 @@
103102
FontWeight="Light"
104103
Text="Prompt Amplifier"
105104
TextAlignment="Center" />
105+
<Button
106+
Grid.Row="0"
107+
Grid.Column="1"
108+
Margin="16,0,0,0"
109+
HorizontalAlignment="Right"
110+
icons:Attached.Icon="fa-solid fa-circle-info"
111+
Classes="transparent-full"
112+
Command="{Binding ShowAmplifierDisclaimerCommand}" />
106113

107114
<Separator
108115
Grid.Row="1"

StabilityMatrix.Avalonia/Languages/Resources.Designer.cs

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

StabilityMatrix.Avalonia/Languages/Resources.ja-JP.resx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,4 +1303,19 @@
13031303
<data name="ModelDiscovery_Title" xml:space="preserve">
13041304
<value>加速モデル探索</value>
13051305
</data>
1306+
<data name="PromptAmplifier_Disclaimer" xml:space="preserve">
1307+
<value>### ✨ 新機能:Prompt Amplifier 登場
1308+
1309+
実験的なSparkモデルを搭載した Lykos AI のアシスタントが、お客様のプロンプトを創造的に拡張したものを生成します。
1310+
1311+
Prompt Amplifier は、安全なエンタープライズ級クラウド環境で実行されます — お客様のマシン上でローカルに実行されることは**ありません**。
1312+
1313+
### ☁️ クラウドを選ぶ理由
1314+
1315+
Spark モデルは、数兆パラメータの基盤モデルに匹敵する規模で動作し、相当な計算能力を必要とします。私たちはローカルで実行可能な機能を最大限に活用することに尽力していますが、Spark の高度な機能は**今すぐ**当社のクラウドインフラストラクチャを通じて利用可能です。
1316+
1317+
### 🔒 プライバシー第一
1318+
1319+
私たちはプライバシーを最優先します([Gen AI 利用規約](https://lykos.ai/gen-ai-terms))。お客様のプロンプトや出力は、Lykos AI または必要なクラウドインフラストラクチャパートナーによって、AI トレーニングに**決して**使用されることはありません。安全な処理は、お客様の拡張生成のためだけに行われます。**その後、プロンプトの内容自体ではなく、メタデータ(タイムスタンプやトークン数など)のみを保持します**。お客様のデータが販売されたり共有されたりすることは決してありません。</value>
1320+
</data>
13061321
</root>

StabilityMatrix.Avalonia/Languages/Resources.resx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,4 +1407,16 @@ Nope! Stability Matrix is still fully functional without one. But, your Lykos ac
14071407
<data name="ModelDiscovery_Title" xml:space="preserve">
14081408
<value>Accelerated Model Discovery</value>
14091409
</data>
1410+
<data name="PromptAmplifier_Disclaimer" xml:space="preserve">
1411+
<value>### 🪄 Introducing: Prompt Amplifier
1412+
Our AI assistant, powered by our experimental Spark model, will generate creative expansions of your prompt.
1413+
1414+
The Prompt Amplifier runs in our secure, enterprise-grade cloud environment—it does **not** run locally on your machine.
1415+
1416+
### ☁️️ Why Cloud?
1417+
The Spark model operates at a scale comparable to trillion-parameter foundation models, requiring substantial computational power. While we’re committed to maximizing locally-runnable features, Spark’s advanced capabilities are available **now** via our cloud infrastructure.
1418+
1419+
### 🔒 Privacy First
1420+
We prioritize your privacy ([Gen AI Terms](&lt;https://lykos.ai/gen-ai-terms&gt;)). **Your prompts/outputs are NEVER used for AI training by Lykos AI or our necessary cloud infrastructure partners.** Secure processing occurs solely to generate your amplification, **after which we only retain metadata (like timestamps and token counts), not the prompt content itself.** Your data is never sold or shared.</value>
1421+
</data>
14101422
</root>

StabilityMatrix.Avalonia/Languages/Resources.zh-Hans.resx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,4 +1418,19 @@
14181418
<data name="ModelDiscovery_Title" xml:space="preserve">
14191419
<value>加速模型搜索</value>
14201420
</data>
1421+
<data name="PromptAmplifier_Disclaimer" xml:space="preserve">
1422+
<value>### ✨ 新功能上线:Prompt Amplifier
1423+
1424+
这是我们的 AI 助手,它使用实验性的 Spark 模型,能为您的提示生成更具创意的扩展。
1425+
1426+
请注意:Prompt Amplifier 会在我们安全的云端环境中运行,**不会**在您的本地电脑上运行。
1427+
1428+
### ☁️ 为何使用云端?
1429+
1430+
Spark 模型规模庞大,算力需求堪比万亿参数的基础模型。我们重视本地功能,但 Spark 的高级能力需要云端支持,现在即可通过我们的云服务使用。
1431+
1432+
### 🔒 隐私至上
1433+
1434+
我们极其重视您的隐私(详情请参阅[生成式 AI 条款](https://lykos.ai/gen-ai-terms))。Lykos AI 及必要的云服务提供商**绝不会**使用您的提示或生成结果来训练 AI 模型。我们仅在为确保功能正常运行时处理您的数据,**处理完成后也只保留必要的元数据(如时间、Token 数量),不保留提示内容本身**。您的数据绝不会被出售或共享。</value>
1435+
</data>
14211436
</root>

StabilityMatrix.Avalonia/Languages/Resources.zh-Hant.resx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,4 +731,19 @@
731731
<data name="ModelDiscovery_Title" xml:space="preserve">
732732
<value>加速模型搜尋</value>
733733
</data>
734+
<data name="PromptAmplifier_Disclaimer" xml:space="preserve">
735+
<value>### ✨ 新功能上線:Prompt Amplifier
736+
737+
這是我們的 AI 助理,它使用實驗性的 Spark 模型,能為您的提示生成更具創意的擴充。
738+
739+
請注意:Prompt Amplifier 會在我們安全的雲端環境中執行,**不會**在您的本機電腦上執行。
740+
741+
### ☁️ 為何使用雲端?
742+
743+
Spark 模型規模龐大,算力需求堪比兆級參數的基礎模型。我們重視本機功能,但 Spark 的進階能力需要雲端支援,現在即可透過我們的雲端服務使用。
744+
745+
### 🔒 隱私至上
746+
747+
我們極其重視您的隱私(詳情請參閱[生成式 AI 條款](https://lykos.ai/gen-ai-terms))。Lykos AI 及必要的雲端服務提供者**絕不會**使用您的提示或生成結果來訓練 AI 模型。我們僅在為確保功能正常運作時處理您的資料,**處理完成後也只保留必要的元數據(如時間、Token 數量),不保留提示內容本身**。您的資料絕不會被出售或分享。</value>
748+
</data>
734749
</root>

StabilityMatrix.Avalonia/ViewModels/Inference/PromptCardViewModel.cs

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public partial class PromptCardViewModel
9999

100100
[ObservableProperty]
101101
[NotifyPropertyChangedFor(nameof(ShowLowTokenWarning), nameof(LowTokenWarningText))]
102-
private int tokensRemaining;
102+
private int tokensRemaining = -1;
103103

104104
[ObservableProperty]
105105
private bool isFlyoutOpen;
@@ -567,6 +567,28 @@ private void EditorCut(TextEditor? textEditor)
567567
[RelayCommand]
568568
private async Task AmplifyPrompt()
569569
{
570+
if (!settingsManager.Settings.SeenTeachingTips.Contains(TeachingTip.PromptAmplifyDisclaimer))
571+
{
572+
var dialog = DialogHelper.CreateMarkdownDialog(Resources.PromptAmplifier_Disclaimer);
573+
dialog.PrimaryButtonText = "Continue";
574+
dialog.CloseButtonText = "Back";
575+
dialog.IsPrimaryButtonEnabled = true;
576+
dialog.DefaultButton = ContentDialogButton.Primary;
577+
578+
var result = await dialog.ShowAsync();
579+
if (result == ContentDialogResult.Primary)
580+
{
581+
settingsManager.Transaction(settings =>
582+
{
583+
settings.SeenTeachingTips.Add(TeachingTip.PromptAmplifyDisclaimer);
584+
});
585+
}
586+
else
587+
{
588+
return;
589+
}
590+
}
591+
570592
var valid = await ValidatePrompts();
571593
if (!valid)
572594
return;
@@ -674,6 +696,10 @@ private async Task AmplifyPrompt()
674696
}
675697
}
676698

699+
[RelayCommand]
700+
private Task ShowAmplifierDisclaimer() =>
701+
DialogHelper.CreateMarkdownDialog(Resources.PromptAmplifier_Disclaimer).ShowAsync();
702+
677703
partial void OnIsBalancedChanged(bool value)
678704
{
679705
switch (value)

StabilityMatrix.Core/Models/Settings/TeachingTip.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public record TeachingTip(string Value) : StringValue(Value)
1919
public static TeachingTip SharedFolderMigrationTip => new("SharedFolderMigrationTip");
2020
public static TeachingTip FolderMapTip => new("FolderMapTip");
2121
public static TeachingTip InferencePromptAmplifyTip => new("InferencePromptAmplifyTip");
22+
public static TeachingTip PromptAmplifyDisclaimer => new("PromptAmplifyDisclaimer");
2223

2324
/// <inheritdoc />
2425
public override string ToString()

0 commit comments

Comments
 (0)