Releases: cnblogs/dashscope-sdk
Releases · cnblogs/dashscope-sdk
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.Sdk
no 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
v0.7.3
v0.7.2
v0.7.1
v0.7.0
v0.6.1
v0.6.0
What's Changed
- build(deps): bump xunit from 2.9.2 to 2.9.3 by @dependabot in #62
- build(deps): bump xunit.runner.visualstudio from 3.0.0 to 3.0.1 by @dependabot in #61
- build(deps): bump coverlet.collector from 6.0.2 to 6.0.3 by @dependabot in #60
- build(deps): bump JsonSchema.Net.Generation from 4.6.0 to 5.0.0 by @dependabot in #59
- build(deps): bump FluentAssertions from 7.0.0 to 8.0.1 by @dependabot in #66
- build(deps): bump Microsoft.ML.Tokenizers from 1.0.0 to 1.0.1 by @dependabot in #65
- build(deps): bump coverlet.collector from 6.0.3 to 6.0.4 by @dependabot in #63
- fix: migrate fluent assertion api by @ikesnowy in #67
- feat: add qvq-72b-preview by @ikesnowy in #68
- feat: upgrade ms extension ai to 9.3.0 by @ikesnowy in #73
- build(deps): bump FluentAssertions from 8.0.1 to 8.1.1 by @dependabot in #71
- build(deps): bump xunit.runner.visualstudio from 3.0.1 to 3.0.2 by @dependabot in #69
Full Changelog: v0.5.2...v0.6.0