Skip to content

v0.8.0

Latest
Compare
Choose a tag to compare
@ikesnowy ikesnowy released this 08 Jul 06:42
· 2 commits to main since this release
32d51c8

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

Full Changelog: v0.7.6...v0.8.0