> This page is for SDK, version Legacy.
> For other versions, use one of these documentation indexes:
> - Current (default): https://buildwithfern.com/learn/sdks/current/llms.txt
> - Legacy: https://buildwithfern.com/learn/sdks/legacy/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 2.1.3

**`(fix):`** 对下载使用完全限定类名 `System.IO.Stream`

## 2.1.2

**`(feat):`** 生成支持 FileDownload 的方法（返回 `Task<Stream>`）。
示例：

```csharp
  var request = new FooAudioRequest {
    Format = Format.Wav,
    Song = "Happy Birthday"
  };
  var stream = await client.Songs.CreateSongAsync(request);
  // 将流复制到文件
  using (var fileStream = new FileStream("song.wav", FileMode.Create, FileAccess.Write))
  {
    await stream.CopyToAsync(fileStream);
  }
```

**`(feat):`** 生成流式/SSE JSON 响应（返回 `IAsyncEnumerable<...>`）。
示例：

```csharp
var request = new FooRequest
{
    Names = ["Bob", "Alice"]
};

// 遍历返回的项目列表
await foreach( var item in client.People.CreatePeopleStreamingAsync(request)) {
  Console.WriteLine($"Text for {item.Name} : {item.Text}");
}
```