* init * enrich doc * init * init * init * doc * chore: remove deprecated email field from pyproject.toml * feat: translate content from Chinese to English and update documentation This commit translates all Chinese text content in the codebase to English, including: - Test messages and prompts - Error messages - Documentation strings - API parameter descriptions - README and release notes content The changes ensure consistency in language usage across the entire project while maintaining all functionality. Documentation has been updated to reflect these changes and provide clearer English descriptions of features and usage. * refactor: update branding from ZaiClient to Z.ai Update SDK name in README and HTTP headers to reflect new branding. Also update endpoint references in type definitions. * ci: allow spaces in PR commit message subject pattern --------- Co-authored-by: zhengweijun <weijun.zheng@aminer.cn>
21 lines
333 B
Python
21 lines
333 B
Python
def test_sdk_import_unit():
|
|
import zai
|
|
|
|
print(zai.__version__)
|
|
|
|
|
|
def test_os_import_unit():
|
|
import os
|
|
|
|
print(os)
|
|
|
|
|
|
def test_sdk_import():
|
|
from zai import ZaiClient
|
|
|
|
client = ZaiClient(api_key='empty') # Please fill in your own API Key
|
|
|
|
if client is not None:
|
|
print('SDK import success')
|
|
else:
|
|
print('SDK import failed')
|