Skip to content

Commit dd6b8ee

Browse files
authored
Merge pull request #48 from cnblogs/add-more-model-name
feat: add qwen-coder-plus and qwen-vl-ocr
2 parents f83e1e0 + c6ef176 commit dd6b8ee

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,15 @@ public enum QWenLlm
8383
/// <summary>
8484
/// qwen-coder-turbo
8585
/// </summary>
86-
QWenCoder = 15,
86+
QWenCoderTurbo = 15,
8787

8888
/// <summary>
8989
/// qwen-math-plus
9090
/// </summary>
91-
QWenMath = 16
91+
QWenMath = 16,
92+
93+
/// <summary>
94+
/// qwen-coder-plus
95+
/// </summary>
96+
QWenCoderPlus = 17,
9297
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +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",
23+
QWenLlm.QWenCoderPlus => "qwen-coder-plus",
24+
QWenLlm.QWenCoderTurbo => "qwen-coder-turbo",
2425
QWenLlm.QWenMath => "qwen-math-plus",
2526
_ => ThrowHelper.UnknownModelName(nameof(llm), llm)
2627
};

src/Cnblogs.DashScope.Sdk/QWenMultimodal/QWenMultimodalModel.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,10 @@ public enum QWenMultimodalModel
3333
/// <summary>
3434
/// qwen-audio-chat
3535
/// </summary>
36-
QWenAudioChat = 6
36+
QWenAudioChat = 6,
37+
38+
/// <summary>
39+
/// qwen-vl-ocr
40+
/// </summary>
41+
QWenVlOcr = 7,
3742
}

src/Cnblogs.DashScope.Sdk/QWenMultimodal/QWenMultimodalModelNames.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public static string GetModelName(this QWenMultimodalModel multimodalModel)
1212
QWenMultimodalModel.QWenVlV1 => "qwen-vl-v1",
1313
QWenMultimodalModel.QWenVlChatV1 => "qwen-vl-chat-v1",
1414
QWenMultimodalModel.QWenAudioChat => "qwen-audio-chat",
15+
QWenMultimodalModel.QWenVlOcr => "qwen-vl-ocr",
1516
_ => ThrowHelper.UnknownModelName(nameof(multimodalModel), multimodalModel)
1617
};
1718
}

0 commit comments

Comments
 (0)