mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 04:47:21 +00:00
Turned getter-like extension methods into extension properties (#1157)
This commit is contained in:
1 parent
0375318b1b
commit
f649febf88
286 files changed
+1379
-1109
No files matched your search
@@ -8,7 +8,7 @@ public static class PromptInjectionFindingCategoryExtensions
|
||||
|
||||
extension(PromptInjectionFindingCategory category)
|
||||
{
|
||||
public string GetDisplayName() => category switch
|
||||
public string DisplayName => category switch
|
||||
{
|
||||
PromptInjectionFindingCategory.OVERRIDE => TB("Attempt to override instructions"),
|
||||
PromptInjectionFindingCategory.ROLE_OVERRIDE => TB("Attempt to change the AI's role"),
|
||||
|
||||
@@ -8,7 +8,7 @@ public static class PromptInjectionSourceKindExtensions
|
||||
|
||||
extension(PromptInjectionSourceKind kind)
|
||||
{
|
||||
public string GetDisplayName() => kind switch
|
||||
public string DisplayName => kind switch
|
||||
{
|
||||
PromptInjectionSourceKind.WEB_CONTENT => TB("Web content"),
|
||||
PromptInjectionSourceKind.FILE_CONTENT => TB("File content"),
|
||||
|
||||
Reference in new issue
Block a user