Nukepayload2.AI.Providers.Zhipu
1.0.0-beta9
dotnet add package Nukepayload2.AI.Providers.Zhipu --version 1.0.0-beta9
NuGet\Install-Package Nukepayload2.AI.Providers.Zhipu -Version 1.0.0-beta9
<PackageReference Include="Nukepayload2.AI.Providers.Zhipu" Version="1.0.0-beta9" />
paket add Nukepayload2.AI.Providers.Zhipu --version 1.0.0-beta9
#r "nuget: Nukepayload2.AI.Providers.Zhipu, 1.0.0-beta9"
// Install Nukepayload2.AI.Providers.Zhipu as a Cake Addin #addin nuget:?package=Nukepayload2.AI.Providers.Zhipu&version=1.0.0-beta9&prerelease // Install Nukepayload2.AI.Providers.Zhipu as a Cake Tool #tool nuget:?package=Nukepayload2.AI.Providers.Zhipu&version=1.0.0-beta9&prerelease
ZhipuApiVBSdk
VB-friendly .NET bindings for the ZhipuApi v4. It's part of the Nukepayload2 VB AI SDK as a model provider.
It has the same capabilities as zhipuai-sdk-csharp-v4, with additional VB-friendly benefits:
- No deadlock in synchronization context threads.
- Enumerate result asynchronously with the syntax introduced in VB 11.
- No reflection required. We support AOT compilation on .NET 8 or later.
- VB flavor of API design
Code examples: CodeExamples.vb
Get on NuGet: Nukepayload2.AI.Providers.Zhipu
Target Frameworks
- .NET Standard 2.0
- .NET 8 or later
Progress
It's currently in beta stage. We reserve the rights of making breaking changes.
Do not use it in production environment unless you've tested it carefully.
Implementation
- Text completion
- Text streaming
- Tool call in completion
- Tool call in streaming
- Image generation
- Image recognition
- Embedding
Tested Manually
- Text completion
- Text streaming
- Tool call in completion
- Tool call in streaming
- Image generation
- Image recognition
- Embedding
Microsoft.Extension.AI 9.0.0 Preview
- Chat completion
- Chat streaming
- Tool call in completion
- Tool call in streaming
- Image generation
- Image recognition
- Embedding
Tested Manually with Microsoft.Extension.AI
- Text completion
- Text streaming
- Tool call in completion
- Tool call in streaming
- Image generation
- Image recognition
- Embedding
Breaking changes of 1.0 Beta
TextRequestBase
uses IReadOnlyList(Of T)
instead of arrays
Reason for this change
Enable the use of List(Of T)
and T()
at the same time. List(Of T)
is very useful when handling tool calls. But in other cases (e.g. LINQ result or hard-coded parameters), arrays are enough.
Breaking change type
- Binary breaking change: some property setters could not be found at runtime.
Suggested action
Recompile your program and components with the same version of this SDK to resolve runtime type conflicts.
Version introduced
1.0.0-beta9
Removed useless SetXxx
methods
Reason for this change
These methods are designed for Java. VB has With
statement for object initialization.
Breaking change type
- Binary breaking change: some
SetXxx
methods could not be found at runtime. - Source breaking change: some
SetXxx
methods could not be found at compile time.
Suggested action
Use With
statement for object initialization.
Version introduced
1.0.0-beta2 and other 1.0 beta versions
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.AI.Abstractions (>= 9.0.0-preview.9.24556.5)
- Newtonsoft.Json (>= 13.0.3)
- System.IdentityModel.Tokens.Jwt (>= 7.2.0)
-
net8.0
- Microsoft.Extensions.AI.Abstractions (>= 9.0.0-preview.9.24556.5)
- Newtonsoft.Json (>= 13.0.3)
- System.IdentityModel.Tokens.Jwt (>= 7.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0-beta9 | 31 | 1/19/2025 |
1.0.0-beta8 | 57 | 1/4/2025 |
1.0.0-beta7 | 45 | 12/29/2024 |
1.0.0-beta6 | 54 | 12/4/2024 |
1.0.0-beta5 | 44 | 12/4/2024 |
1.0.0-beta4 | 42 | 12/2/2024 |
1. Support tool call in streaming chat completion of `Microsoft.Extensions.AI 9.0.0 preview`.
2. Support finish reason in chat completion of `Microsoft.Extensions.AI 9.0.0 preview`.
3. Fixed garbled characters or UTF-8 decode errors in long streaming chat.