mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 12: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
@@ -15,8 +15,8 @@ public static class SystemPromptRoleExtensions
|
||||
/// model the rules do not know is almost always one released after they were written, and the
|
||||
/// older generations which still want "system" say so in their families.
|
||||
/// </remarks>
|
||||
/// <returns>The role, as OpenAI names it.</returns>
|
||||
public string ToOpenAIRole() => role switch
|
||||
/// <value>The role, as OpenAI names it.</value>
|
||||
public string OpenAIRole => role switch
|
||||
{
|
||||
SystemPromptRole.SYSTEM => "system",
|
||||
SystemPromptRole.DEVELOPER => "developer",
|
||||
|
||||
Reference in new issue
Block a user