@@ -32,12 +32,12 @@ public class TextGenerationStop
32
32
/// <summary>
33
33
/// Generation will stop if token with this id is going to be generated.
34
34
/// </summary>
35
- public int [ ] ? StopTokenId { get ; }
35
+ public int [ ] ? StopToken { get ; }
36
36
37
37
/// <summary>
38
38
/// Generation will stop if token in this ids is going to be generated.
39
39
/// </summary>
40
- public IEnumerable < int [ ] > ? StopTokenIds { get ; }
40
+ public IEnumerable < int [ ] > ? StopTokens { get ; }
41
41
42
42
/// <summary>
43
43
/// Creates a <see cref="TextGenerationStop"/> with single string.
@@ -60,19 +60,19 @@ public TextGenerationStop(IEnumerable<string> stopStrings)
60
60
/// <summary>
61
61
/// Creates a <see cref="TextGenerationStop"/> with single token id.
62
62
/// </summary>
63
- /// <param name="stopTokenId ">The stop token id.</param>
64
- public TextGenerationStop ( int [ ] stopTokenId )
63
+ /// <param name="stopToken ">The stop token id.</param>
64
+ public TextGenerationStop ( int [ ] stopToken )
65
65
{
66
- StopTokenId = stopTokenId ;
66
+ StopToken = stopToken ;
67
67
}
68
68
69
69
/// <summary>
70
70
/// Creates a <see cref="TextGenerationStop"/> with multiple token ids.
71
71
/// </summary>
72
- /// <param name="stopTokenIds ">The stop token ids.</param>
73
- public TextGenerationStop ( IEnumerable < int [ ] > stopTokenIds )
72
+ /// <param name="stopTokens ">The stop token ids.</param>
73
+ public TextGenerationStop ( IEnumerable < int [ ] > stopTokens )
74
74
{
75
- StopTokenIds = stopTokenIds ;
75
+ StopTokens = stopTokens ;
76
76
}
77
77
78
78
/// <summary>
@@ -94,7 +94,7 @@ public TextGenerationStop(IEnumerable<int[]> stopTokenIds)
94
94
public static implicit operator TextGenerationStop ( List < string > stops ) => new ( stops ) ;
95
95
96
96
/// <summary>
97
- /// Creates a <see cref="TextGenerationStop"/> with single token id .
97
+ /// Creates a <see cref="TextGenerationStop"/> with token ids .
98
98
/// </summary>
99
99
/// <param name="stop">The stop token id.</param>
100
100
public static implicit operator TextGenerationStop ( int [ ] stop ) => new ( stop ) ;
0 commit comments