Releases: cnblogs/dashscope-sdk
Releases · cnblogs/dashscope-sdk
v1.0.1
v1.0.0
BREAKING CHANGES
GetQwenandGetDeepSeekhas been removed- File upload api for
qwen-longhas been renamed toOpenAiCompatibleUploadFileAsync Microsoft.Extensions.AIdependency has been upgrade to10.5.0- No longer reference
System.Text.Jsonfornet8.0
What's new
SDK
- feat: support OCR models
- feat: support
qwen-MT,qwen-character,qwen-doc-turboandqwen-deep-researchmodels - feat: support
qwen3-omni-30b-a3b-captionermodel - feat: support enable
code_interperatorplugin configuration - feat: support streaming tool calls
- feat: support
batchapis - feat: support
freshness,assigned_site_listandintention_optionsin web search options - feat: support web search options for multimodal models
- feat: support function call for multimodal models.
- feat: support structured output for multimodal models.
M.S.E.AI
- feat: allow pass
TextChatMessageorMultimodalMessagedirectly to theRawRepresentation - feat: support tool calls for both non-streaming and streaming api
- feat: allow use
ReasoningEffort.Noneto disable thinking
重大更改
GetQwen和GetDeepSeek系列 API 已被删除- 用于
qwen-long的文件上传接口已被重命名为OpenAiCompatibleUploadFileAsync - 包依赖的
Microsoft.Extensions.AI已升级到10.5.0 net8.0下不再显式依赖System.Text.Json
更新日志
SDK
- 支持 OCR 系列模型,允许调用内置 Task(高精识别、信息抽取、表格解析、文档解析、公式识别、通用文本识别、多语言识别)
- 增强专项模型支持:
qwen-MT,qwen-character,qwen-doc-turbo和qwen-deep-research - 添加
qwen3-omni-30b-a3b-captioner模型支持 - 添加代码执行器选项支持
- 增加联网搜索参数中关于日期、站点以及自然语言指令的支持
- 多模态模型支持结构化输出
- 增加流式工具调用的支持
- 支持批量推理的创建与管理
M.S.E.AI
- 允许通过
RawRepresentation直接传递TextChatMessage和MultimodalMessage - 支持流式工具调用
- 允许通过
ReasoningEffort.None来关闭思考模式
Full Changelog: v0.9.0...v1.0.0
v1.0.0-pre2
What's Changed
- feat: add qwen audio sample by @ikesnowy in #151
- feat: support sending raw message directly via M.E.AI by @ikesnowy in #156
Full Changelog: v1.0.0-pre1...v1.0.0-pre2
v1.0.0-pre1
What's Changed
- docs: update intl api address by @ikesnowy in #130
- feat: add sample for uploading video file by @ikesnowy in #131
- feat: add ocr sample by @ikesnowy in #135
- chore: remove obsolete apis by @ikesnowy in #136
- feat: add gui sample by @ikesnowy in #137
- feat: support upload files api by @ikesnowy in #139
- feat: support doc url by @ikesnowy in #141
Full Changelog: v0.9.0...v1.0.0-pre1
v0.9.0
What's Changed
- refactor: remove FluentAssertions by @ikesnowy in #111
- Bump Microsoft.Extensions.AI from 9.7.0 to 9.8.0 by @dependabot[bot] in #115
- Bump Microsoft.Extensions.AI.Abstractions from 9.7.0 to 9.8.0 by @dependabot[bot] in #116
- Bump Microsoft.Extensions.AI from 9.8.0 to 9.9.0 by @dependabot[bot] in #120
- Bump Microsoft.Extensions.AI.Abstractions from 9.8.0 to 9.9.0 by @dependabot[bot] in #121
- feat: support temp oss upload by @ikesnowy in #123
- Bump Microsoft.Extensions.AI from 9.9.1 to 9.10.0 by @dependabot[bot] in #125
- feat: update parameters by @ikesnowy in #129
- Bump Microsoft.Extensions.AI from 9.10.0 to 9.10.2 by @dependabot[bot] in #128
- Adds thinking support to multimodal parameters
- Support domain models like roleplay(
qwen-character), translation, deep research, data mining - Support change strategy for web search plugin
- Obsolete
QwenCompletionandDeepSeekCompletionoverloads
Full Changelog: v0.8.0...v0.9.0
v0.8.0
BREAKING CHANGES
Shortcut methods for LLama2 and BaiChuan LLM are no longer provided, use GetTextCompletionAsync() and specify model name to continue use.
Highlights
TTS support
Usage:
using var tts = await dashScopeClient.CreateSpeechSynthesizerSocketSessionAsync("cosyvoice-v2");
var taskId = await tts.RunTaskAsync(
new SpeechSynthesizerParameters { Voice = "longxiaochun_v2", Format = "mp3" });
await tts.ContinueTaskAsync(taskId, "博客园");
await tts.ContinueTaskAsync(taskId, "代码改变世界");
await tts.FinishTaskAsync(taskId);
var file = new FileInfo("tts.mp3");
using var stream = file.OpenWrite();
await foreach (var b in tts.GetAudioAsync())
{
stream.WriteByte(b);
}More text generation parameters
Support TranslationOptions and SearchOptions in text completion.
Support Logprobs in text completion.
What's Changed
- docs: add sdk issue template by @ikesnowy in #102
- feat: support cosy voice by @ikesnowy in #106
- feat: remove baichuan and llama2 methods by @ikesnowy in #108
- feat: add text generation parameters by @ikesnowy in #109
- feat: update readme doc and samples by @ikesnowy in #110
Full Changelog: v0.7.6...v0.8.0
v0.7.6
v0.7.5
v0.7.4
BREAKING CHANGES
- The minimal framework requirement has dropped to
net6.0, there might be framework-related issues, but should be ok for most of times, just a reminder if wired bug happens. Cnblogs.DashScope.Sdkno longer depends onJsonSchema.Net.Generation, you may manually install it or useGetJsonSchemaAsNode()if you are innet9.0(docs).
What's Changed
- chore: upgrade json schema by @ikesnowy in #92
- build(deps): Update to M.E.AI 9.5.0-preview by @jozkee in #93
- chore: upgrade msai 9.5.0 by @ikesnowy in #94
- refactor: make library compatible with net6 by @ikesnowy in #96
Full Changelog: v0.7.3...v0.7.4