Repository navigation
Releases
v1.0.1
v1.0.1 Update - 2025-02-01
New Features
Error Types Added: We have added several new error types to better standardize and describe error returns in the SDK:
- ErrResultProcessing: Triggered when the return result is being generated.
- ErrSdkInternal: Triggered when critical errors occur within the SDK. This should not happen; if encountered, please raise an issue.
- ErrHttpRequestTimeOut: Triggered when the HTTP request to the GLM server fails.
- ......
Data Structure Updates
Result Struct Updated: The Result struct now includes a new field, FinishReason, which allows you to see the specific reason for the termination.
Fixes
Logic Bug Fix: We have fixed a logic bug where a termination reason of excessive length was incorrectly treated as an error. This issue has now been resolved to ensure proper handling of termination reasons.
v1.0.0
ZhiPu-GLM-sdk for Go Release Notes
Version: 1.0.0
Release Date: 2025-01-27
Overview:
We are pleased to announce the release of ZhiPu-GLM-sdk for Go, a SDK designed to interact with the ZhiPuQingYan GLM. This SDK provides developers with a convenient and efficient way to send requests and handle responses, making it easier to integrate ZhiPuGLM into various applications.
Key Features:
- Synchronous and Asynchronous Interfaces:
SendSync: Send a synchronous request and receive the model's reply immediately.
SendAsync: Send an asynchronous request and obtain a message ID.
GetAsyncMessage: Retrieve the asynchronous model reply using the message ID.
SendStream: Send a streaming request and receive a streaming response channel.
- Customizable Client Configuration:
Set user ID, turn off sampling, set temperature, TopP, maximum token count, response format, and stop word.
- Comprehensive Documentation:
Detailed documentation and coding examples to help developers quickly get started.