Skip to content

Commit

Permalink
feat: add qwen-coder-plus and qwen-vl-ocr
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesnowy committed Nov 25, 2024
1 parent f83e1e0 commit c6ef176
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
9 changes: 7 additions & 2 deletions src/Cnblogs.DashScope.Sdk/QWen/QWenLlm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,15 @@ public enum QWenLlm
/// <summary>
/// qwen-coder-turbo
/// </summary>
QWenCoder = 15,
QWenCoderTurbo = 15,

/// <summary>
/// qwen-math-plus
/// </summary>
QWenMath = 16
QWenMath = 16,

/// <summary>
/// qwen-coder-plus
/// </summary>
QWenCoderPlus = 17,
}
3 changes: 2 additions & 1 deletion src/Cnblogs.DashScope.Sdk/QWen/QWenLlmNames.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public static string GetModelName(this QWenLlm llm)
QWenLlm.QWen1_8BLongContextChat => "qwen-1.8b-longcontext-chat",
QWenLlm.QWen1_8Chat => "qwen-1.8b-chat",
QWenLlm.QWenLong => "qwen-long",
QWenLlm.QWenCoder => "qwen-coder-turbo",
QWenLlm.QWenCoderPlus => "qwen-coder-plus",
QWenLlm.QWenCoderTurbo => "qwen-coder-turbo",
QWenLlm.QWenMath => "qwen-math-plus",
_ => ThrowHelper.UnknownModelName(nameof(llm), llm)
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@ public enum QWenMultimodalModel
/// <summary>
/// qwen-audio-chat
/// </summary>
QWenAudioChat = 6
QWenAudioChat = 6,

/// <summary>
/// qwen-vl-ocr
/// </summary>
QWenVlOcr = 7,
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public static string GetModelName(this QWenMultimodalModel multimodalModel)
QWenMultimodalModel.QWenVlV1 => "qwen-vl-v1",
QWenMultimodalModel.QWenVlChatV1 => "qwen-vl-chat-v1",
QWenMultimodalModel.QWenAudioChat => "qwen-audio-chat",
QWenMultimodalModel.QWenVlOcr => "qwen-vl-ocr",
_ => ThrowHelper.UnknownModelName(nameof(multimodalModel), multimodalModel)
};
}
Expand Down

0 comments on commit c6ef176

Please sign in to comment.