mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 05:27:21 +00:00
Added a Send to menu to every chat message and kept restrictions when sending content on (#1124)
This commit is contained in:
1 parent
d06688ca08
commit
bf54b8cd0d
73 files changed
+1923
-390
No files matched your search
@@ -33,6 +33,19 @@ public sealed class ChatThreadRestrictionsOfTests
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TheAddressesItsModelsWroteComeAlong()
|
||||
{
|
||||
// The moderation of the SWOT analysis carries what the models of the four categories wrote:
|
||||
var researchThread = new ChatThread();
|
||||
researchThread.RequireRestrictions(ChatRestrictions.NONE.WithWebAddressesWrittenByModelIn("A competitor is on https://example.org/competitor."));
|
||||
var assistantThread = new ChatThread();
|
||||
|
||||
assistantThread.RequireRestrictionsOf(researchThread);
|
||||
|
||||
Assert.That(assistantThread.WebAddressesWrittenByModels, Is.EquivalentTo(researchThread.WebAddressesWrittenByModels));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ALooserThreadLoosensNothing()
|
||||
{
|
||||
@@ -67,6 +80,7 @@ public sealed class ChatThreadRestrictionsOfTests
|
||||
Assert.That(assistantThread.RequiredProviderConfidence, Is.EqualTo(ConfidenceLevel.NONE));
|
||||
Assert.That(assistantThread.DataSecurity, Is.EqualTo(DataSourceSecurity.NOT_SPECIFIED));
|
||||
Assert.That(assistantThread.RequiredOutboundDataRestriction, Is.EqualTo(OutboundDataRequirement.NONE));
|
||||
Assert.That(assistantThread.WebAddressesWrittenByModels, Is.Empty);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user