Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion StabilityMatrix.Avalonia/Controls/Inference/PromptCard.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
<Button.Flyout>
<controls:BetterFlyout>
<Grid ColumnDefinitions="*, Auto" RowDefinitions="Auto, Auto, Auto, Auto, Auto, Auto, Auto, Auto">

<TextBlock
Grid.Row="0"
Grid.Column="0"
Expand All @@ -103,6 +102,14 @@
FontWeight="Light"
Text="Prompt Amplifier"
TextAlignment="Center" />
<Button
Grid.Row="0"
Grid.Column="1"
Margin="16,0,0,0"
HorizontalAlignment="Right"
icons:Attached.Icon="fa-solid fa-circle-info"
Classes="transparent-full"
Command="{Binding ShowAmplifierDisclaimerCommand}" />

<Separator
Grid.Row="1"
Expand Down
15 changes: 15 additions & 0 deletions StabilityMatrix.Avalonia/Languages/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions StabilityMatrix.Avalonia/Languages/Resources.ja-JP.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1303,4 +1303,19 @@
<data name="ModelDiscovery_Title" xml:space="preserve">
<value>加速モデル探索</value>
</data>
<data name="PromptAmplifier_Disclaimer" xml:space="preserve">
<value>### ✨ 新機能:Prompt Amplifier 登場

実験的なSparkモデルを搭載した Lykos AI のアシスタントが、お客様のプロンプトを創造的に拡張したものを生成します。

Prompt Amplifier は、安全なエンタープライズ級クラウド環境で実行されます — お客様のマシン上でローカルに実行されることは**ありません**。

### ☁️ クラウドを選ぶ理由

Spark モデルは、数兆パラメータの基盤モデルに匹敵する規模で動作し、相当な計算能力を必要とします。私たちはローカルで実行可能な機能を最大限に活用することに尽力していますが、Spark の高度な機能は**今すぐ**当社のクラウドインフラストラクチャを通じて利用可能です。

### 🔒 プライバシー第一

私たちはプライバシーを最優先します([Gen AI 利用規約](https://lykos.ai/gen-ai-terms))。お客様のプロンプトや出力は、Lykos AI または必要なクラウドインフラストラクチャパートナーによって、AI トレーニングに**決して**使用されることはありません。安全な処理は、お客様の拡張生成のためだけに行われます。**その後、プロンプトの内容自体ではなく、メタデータ(タイムスタンプやトークン数など)のみを保持します**。お客様のデータが販売されたり共有されたりすることは決してありません。</value>
</data>
</root>
12 changes: 12 additions & 0 deletions StabilityMatrix.Avalonia/Languages/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1407,4 +1407,16 @@ Nope! Stability Matrix is still fully functional without one. But, your Lykos ac
<data name="ModelDiscovery_Title" xml:space="preserve">
<value>Accelerated Model Discovery</value>
</data>
<data name="PromptAmplifier_Disclaimer" xml:space="preserve">
<value>### 🪄 Introducing: Prompt Amplifier
Our AI assistant, powered by our experimental Spark model, will generate creative expansions of your prompt.

The Prompt Amplifier runs in our secure, enterprise-grade cloud environment—it does **not** run locally on your machine.

### ☁️️ Why Cloud?
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.

### 🔒 Privacy First
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>
</data>
</root>
15 changes: 15 additions & 0 deletions StabilityMatrix.Avalonia/Languages/Resources.zh-Hans.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1418,4 +1418,19 @@
<data name="ModelDiscovery_Title" xml:space="preserve">
<value>加速模型搜索</value>
</data>
<data name="PromptAmplifier_Disclaimer" xml:space="preserve">
<value>### ✨ 新功能上线:Prompt Amplifier

这是我们的 AI 助手,它使用实验性的 Spark 模型,能为您的提示生成更具创意的扩展。

请注意:Prompt Amplifier 会在我们安全的云端环境中运行,**不会**在您的本地电脑上运行。

### ☁️ 为何使用云端?

Spark 模型规模庞大,算力需求堪比万亿参数的基础模型。我们重视本地功能,但 Spark 的高级能力需要云端支持,现在即可通过我们的云服务使用。

### 🔒 隐私至上

我们极其重视您的隐私(详情请参阅[生成式 AI 条款](https://lykos.ai/gen-ai-terms))。Lykos AI 及必要的云服务提供商**绝不会**使用您的提示或生成结果来训练 AI 模型。我们仅在为确保功能正常运行时处理您的数据,**处理完成后也只保留必要的元数据(如时间、Token 数量),不保留提示内容本身**。您的数据绝不会被出售或共享。</value>
</data>
</root>
15 changes: 15 additions & 0 deletions StabilityMatrix.Avalonia/Languages/Resources.zh-Hant.resx
Original file line number Diff line number Diff line change
Expand Up @@ -731,4 +731,19 @@
<data name="ModelDiscovery_Title" xml:space="preserve">
<value>加速模型搜尋</value>
</data>
<data name="PromptAmplifier_Disclaimer" xml:space="preserve">
<value>### ✨ 新功能上線:Prompt Amplifier

這是我們的 AI 助理,它使用實驗性的 Spark 模型,能為您的提示生成更具創意的擴充。

請注意:Prompt Amplifier 會在我們安全的雲端環境中執行,**不會**在您的本機電腦上執行。

### ☁️ 為何使用雲端?

Spark 模型規模龐大,算力需求堪比兆級參數的基礎模型。我們重視本機功能,但 Spark 的進階能力需要雲端支援,現在即可透過我們的雲端服務使用。

### 🔒 隱私至上

我們極其重視您的隱私(詳情請參閱[生成式 AI 條款](https://lykos.ai/gen-ai-terms))。Lykos AI 及必要的雲端服務提供者**絕不會**使用您的提示或生成結果來訓練 AI 模型。我們僅在為確保功能正常運作時處理您的資料,**處理完成後也只保留必要的元數據(如時間、Token 數量),不保留提示內容本身**。您的資料絕不會被出售或分享。</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public partial class PromptCardViewModel

[ObservableProperty]
[NotifyPropertyChangedFor(nameof(ShowLowTokenWarning), nameof(LowTokenWarningText))]
private int tokensRemaining;
private int tokensRemaining = -1;
Comment on lines 100 to +102
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Initializing tokensRemaining to -1 is a good way to indicate that it hasn't been loaded yet. However, ensure the UI handles this -1 value gracefully (e.g., by displaying a loading indicator or a placeholder) to avoid confusion or errors. Consider adding a comment explaining why -1 is used.

    [ObservableProperty]
    [NotifyPropertyChangedFor(nameof(ShowLowTokenWarning), nameof(LowTokenWarningText)))]
    private int tokensRemaining = -1; // -1 indicates tokens haven't been loaded yet


[ObservableProperty]
private bool isFlyoutOpen;
Expand Down Expand Up @@ -567,6 +567,28 @@ private void EditorCut(TextEditor? textEditor)
[RelayCommand]
private async Task AmplifyPrompt()
{
if (!settingsManager.Settings.SeenTeachingTips.Contains(TeachingTip.PromptAmplifyDisclaimer))
{
var dialog = DialogHelper.CreateMarkdownDialog(Resources.PromptAmplifier_Disclaimer);
dialog.PrimaryButtonText = "Continue";
dialog.CloseButtonText = "Back";
dialog.IsPrimaryButtonEnabled = true;
dialog.DefaultButton = ContentDialogButton.Primary;

var result = await dialog.ShowAsync();
if (result == ContentDialogResult.Primary)
{
settingsManager.Transaction(settings =>
{
settings.SeenTeachingTips.Add(TeachingTip.PromptAmplifyDisclaimer);
});
}
else
{
return;
}
}
Comment on lines +570 to +590
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This block checks if the disclaimer has been seen and shows a dialog if it hasn't. Consider extracting this logic into a separate method to improve readability and potentially reuse it elsewhere. Also, consider using a more descriptive variable name than dialog.

        if (!settingsManager.Settings.SeenTeachingTips.Contains(TeachingTip.PromptAmplifyDisclaimer))
        {
            await ShowPromptAmplifierDisclaimer();
        }


var valid = await ValidatePrompts();
if (!valid)
return;
Expand Down Expand Up @@ -674,6 +696,10 @@ private async Task AmplifyPrompt()
}
}

[RelayCommand]
private Task ShowAmplifierDisclaimer() =>
DialogHelper.CreateMarkdownDialog(Resources.PromptAmplifier_Disclaimer).ShowAsync();

partial void OnIsBalancedChanged(bool value)
{
switch (value)
Expand Down
1 change: 1 addition & 0 deletions StabilityMatrix.Core/Models/Settings/TeachingTip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public record TeachingTip(string Value) : StringValue(Value)
public static TeachingTip SharedFolderMigrationTip => new("SharedFolderMigrationTip");
public static TeachingTip FolderMapTip => new("FolderMapTip");
public static TeachingTip InferencePromptAmplifyTip => new("InferencePromptAmplifyTip");
public static TeachingTip PromptAmplifyDisclaimer => new("PromptAmplifyDisclaimer");

/// <inheritdoc />
public override string ToString()
Expand Down
Loading