Skip to content

Commit 8752106

Browse files
committed
feat: add qwen and embedding models
1 parent 02ccf3e commit 8752106

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

src/Cnblogs.DashScope.Sdk/QWen/QWenLlm.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,15 @@ public enum QWenLlm
7878
/// <summary>
7979
/// qwen-long, input limit 10,000,000 token
8080
/// </summary>
81-
QWenLong = 14
81+
QWenLong = 14,
82+
83+
/// <summary>
84+
/// qwen-coder-turbo
85+
/// </summary>
86+
QWenCoder = 15,
87+
88+
/// <summary>
89+
/// qwen-math-plus
90+
/// </summary>
91+
QWenMath = 16
8292
}

src/Cnblogs.DashScope.Sdk/QWen/QWenLlmNames.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public static string GetModelName(this QWenLlm llm)
2020
QWenLlm.QWen1_8BLongContextChat => "qwen-1.8b-longcontext-chat",
2121
QWenLlm.QWen1_8Chat => "qwen-1.8b-chat",
2222
QWenLlm.QWenLong => "qwen-long",
23+
QWenLlm.QWenCoder => "qwen-coder-turbo",
24+
QWenLlm.QWenMath => "qwen-math-plus",
2325
_ => ThrowHelper.UnknownModelName(nameof(llm), llm)
2426
};
2527
}

src/Cnblogs.DashScope.Sdk/TextEmbedding/TextEmbeddingModel.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,10 @@ public enum TextEmbeddingModel
1313
/// <summary>
1414
/// text-embedding-v2
1515
/// </summary>
16-
TextEmbeddingV2 = 2
16+
TextEmbeddingV2 = 2,
17+
18+
/// <summary>
19+
/// text-embedding-v3
20+
/// </summary>
21+
TextEmbeddingV3 = 3,
1722
}

src/Cnblogs.DashScope.Sdk/TextEmbedding/TextEmbeddingModelNames.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public static string GetModelName(this TextEmbeddingModel model)
88
{
99
TextEmbeddingModel.TextEmbeddingV1 => "text-embedding-v1",
1010
TextEmbeddingModel.TextEmbeddingV2 => "text-embedding-v2",
11+
TextEmbeddingModel.TextEmbeddingV3 => "text-embedding-v3",
1112
_ => ThrowHelper.UnknownModelName(nameof(model), model)
1213
};
1314
}

0 commit comments

Comments
 (0)