Repository navigation
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.