Expand description
Custom error types for ZAI-RS
This module defines comprehensive error types that map to the ZhipuAI API error codes as documented at https://docs.bigmodel.cn/cn/api/api-code
§Sensitive Data Logging
This module provides utilities for masking sensitive information in logs to prevent accidental exposure of API keys, tokens, and other sensitive data.
Enums§
- ZaiError
- Main error type for the ZAI-RS SDK
Functions§
- contains_
sensitive_ info - Checks if text contains sensitive information patterns
- mask_
api_ key - Masks API keys in text
- mask_
sensitive_ info - Masks sensitive information in text for secure logging
- validate_
api_ key - Validates Zhipu AI API key format
Type Aliases§
- ZaiResult
- Type alias for Result with ZaiError