@@ -36,7 +36,7 @@ public static IKernelMemoryBuilder WithDashScopeDefaults(
36
36
ITextTokenizer ? textEmbeddingTokenizer = null ,
37
37
bool onlyForRetrieval = false )
38
38
{
39
- textGenerationTokenizer ??= new QWenTokenizer ( ) ;
39
+ textGenerationTokenizer ??= new QWenTextTokenizer ( ) ;
40
40
textEmbeddingTokenizer ??= new LengthTokenizer ( ) ;
41
41
42
42
var config = new DashScopeConfig
@@ -97,7 +97,7 @@ public static IKernelMemoryBuilder WithDashScope(
97
97
{
98
98
config . EnsureValid ( ) ;
99
99
embeddingTokenizer ??= new LengthTokenizer ( ) ;
100
- textTokenizer ??= new QWenTokenizer ( ) ;
100
+ textTokenizer ??= new QWenTextTokenizer ( ) ;
101
101
dashScopeClient ??= new DashScopeClient ( config . ApiKey ) ;
102
102
builder . WithDashScopeTextGeneration ( config , textTokenizer , dashScopeClient ) ;
103
103
builder . WithDashScopeTextEmbeddingGeneration ( config , embeddingTokenizer , onlyForRetrieval , dashScopeClient ) ;
@@ -119,7 +119,7 @@ public static IKernelMemoryBuilder WithDashScopeTextGeneration(
119
119
IDashScopeClient ? dashScopeClient = null )
120
120
{
121
121
config . EnsureValid ( ) ;
122
- tokenizer ??= new QWenTokenizer ( ) ;
122
+ tokenizer ??= new QWenTextTokenizer ( ) ;
123
123
dashScopeClient ??= new DashScopeClient ( config . ApiKey ) ;
124
124
builder . Services . AddDashScopeTextGeneration ( config , tokenizer , dashScopeClient ) ;
125
125
return builder ;
@@ -188,7 +188,7 @@ public static IServiceCollection AddDashScopeTextEmbeddingGeneration(
188
188
/// </summary>
189
189
/// <param name="services">The <see cref="IServiceCollection"/>.</param>
190
190
/// <param name="config">Settings for DashScope.</param>
191
- /// <param name="tokenizer">The tokenizer to use, defaults to <see cref="QWenTokenizer "/>.</param>
191
+ /// <param name="tokenizer">The tokenizer to use, defaults to <see cref="QWenTextTokenizer "/>.</param>
192
192
/// <param name="dashScopeClient">The underlying <see cref="IDashScopeClient"/>.</param>
193
193
/// <returns></returns>
194
194
public static IServiceCollection AddDashScopeTextGeneration (
@@ -198,7 +198,7 @@ public static IServiceCollection AddDashScopeTextGeneration(
198
198
IDashScopeClient ? dashScopeClient = null )
199
199
{
200
200
config . EnsureValid ( ) ;
201
- tokenizer ??= new QWenTokenizer ( ) ;
201
+ tokenizer ??= new QWenTextTokenizer ( ) ;
202
202
203
203
return services . AddSingleton < ITextGenerator > (
204
204
sp => new DashScopeTextGenerator (
0 commit comments