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
/// Marks parameter accepts presence_penalty and repetition_penalty options.
5
+
/// </summary>
6
+
publicinterfaceIPenaltyParameter
7
+
{
8
+
/// <summary>
9
+
/// Increasing the repetition penalty can reduce the amount of repetition in the model’s output. A value of 1.0 indicates no penalty, with the default set at 1.1.
10
+
/// </summary>
11
+
publicfloat?RepetitionPenalty{get;}
12
+
13
+
/// <summary>
14
+
/// Control the content repetition in text generated by the model.
15
+
/// </summary>
16
+
/// <remarks>Must be in [-2.0, 2.0]. Use higher penalty for batter creativity.</remarks>
/// The format of the result message, must be <c>text</c> or <c>message</c>.
@@ -14,30 +15,6 @@ public interface ITextGenerationParameters : IIncrementalOutputParameter, ISeedP
14
15
/// </remarks>
15
16
publicstring?ResultFormat{get;}
16
17
17
-
/// <summary>
18
-
/// The maximum number of tokens the model can generate.
19
-
/// </summary>
20
-
/// <remarks>
21
-
/// Default and maximum number of tokens is 1500(qwen-turbo) or 2000(qwen-max, qwen-max-1201, qwen-max-longcontext, qwen-plus).
22
-
/// </remarks>
23
-
publicint?MaxTokens{get;}
24
-
25
-
/// <summary>
26
-
/// Increasing the repetition penalty can reduce the amount of repetition in the model’s output. A value of 1.0 indicates no penalty, with the default set at 1.1.
27
-
/// </summary>
28
-
publicfloat?RepetitionPenalty{get;}
29
-
30
-
/// <summary>
31
-
/// Controls the diversity of generations. Lower temperature leads to more consistent result.
32
-
/// </summary>
33
-
/// <remarks>Must be in [0,2), defaults to 0.85.</remarks>
34
-
publicfloat?Temperature{get;}
35
-
36
-
/// <summary>
37
-
/// Stop generation when next token or string is in given range.
38
-
/// </summary>
39
-
publicTextGenerationStop?Stop{get;}
40
-
41
18
/// <summary>
42
19
/// Enable internet search when generation. Defaults to false.
43
20
/// </summary>
@@ -49,7 +26,7 @@ public interface ITextGenerationParameters : IIncrementalOutputParameter, ISeedP
0 commit comments