Skip to content

Releases

v1.0.1

Choose a tag to compare

@OuterCyrex OuterCyrex released this 31 Jan 17:31

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

v1.0.0 Pre-release
Pre-release

Choose a tag to compare

@OuterCyrex OuterCyrex released this 27 Jan 10:24

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.