You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ServiceStack/src/ServiceStack.AI.Chat/ChatCompletion.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ public class ChatCompletion : IPost, IReturn<ChatResponse>
38
38
39
39
[Description("Constrains effort on reasoning for reasoning models. Currently supported values are minimal, low, medium, and high (none, default). Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.")]
40
40
[DataMember(Name="reasoning_effort")]
41
-
[Input(Type="combobox",Options="{ allowableValues:['low','medium','high','none','default'] }",Help="Constrains effort on reasoning for reasoning models")]
41
+
[Input(Type="combobox",EvalAllowableValues="['low','medium','high','none','default']",Help="Constrains effort on reasoning for reasoning models")]
42
42
publicstring?ReasoningEffort{get;set;}
43
43
44
44
[Description("An object specifying the format that the model must output. Compatible with GPT-4 Turbo and all GPT-3.5 Turbo models newer than `gpt-3.5-turbo-1106`. Setting Type to ResponseFormat.JsonObject enables JSON mode, which guarantees the message the model generates is valid JSON.")]
@@ -47,7 +47,7 @@ public class ChatCompletion : IPost, IReturn<ChatResponse>
47
47
48
48
[Description("Specifies the processing type used for serving the request.")]
49
49
[DataMember(Name="service_tier")]
50
-
[Input(Type="combobox",Options="{ allowableValues:['auto','default'] }",Help="Processing type for serving the request")]
50
+
[Input(Type="combobox",EvalAllowableValues="['auto','default']",Help="Processing type for serving the request")]
51
51
publicstring?ServiceTier{get;set;}
52
52
53
53
[Description("A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies. The IDs should be a string that uniquely identifies each user.")]
@@ -76,7 +76,7 @@ public class ChatCompletion : IPost, IReturn<ChatResponse>
76
76
77
77
[Description("Constrains the verbosity of the model's response. Lower values will result in more concise responses, while higher values will result in more verbose responses. Currently supported values are low, medium, and high.")]
78
78
[DataMember(Name="verbosity")]
79
-
[Input(Type="combobox",Options="{ allowableValues:['low','medium','high'] }",Placeholder="e.g. low",Help="Constrains verbosity of model's response")]
79
+
[Input(Type="combobox",EvalAllowableValues="['low','medium','high']",Placeholder="e.g. low",Help="Constrains verbosity of model's response")]
80
80
publicstring?Verbosity{get;set;}
81
81
82
82
[Description("What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.")]
0 commit comments