fix: modulename (#6)
* fix(release): correct package import name transformation Remove incorrect sed replacement that transformed all dashes to underscores. Instead, only remove '-sdk' suffix from package names to match actual Python import conventions. * readme --------- Co-authored-by: zhengweijun <weijun.zheng@aminer.cn>
This commit is contained in:
parent
74baa1542c
commit
a5f625f902
4 changed files with 11 additions and 11 deletions
2
.github/workflows/_release.yml
vendored
2
.github/workflows/_release.yml
vendored
|
|
@ -134,7 +134,7 @@ jobs:
|
|||
|
||||
# Replace all dashes in the package name with underscores,
|
||||
# since that's how Python imports packages with dashes in the name.
|
||||
IMPORT_NAME="$(echo "$PKG_NAME" | sed s/-/_/g)"
|
||||
IMPORT_NAME="${PKG_NAME//-sdk/}"
|
||||
|
||||
poetry run python -c "import $IMPORT_NAME; print(dir($IMPORT_NAME))"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
# Z.ai Open Platform Python SDK
|
||||
|
||||
[](https://pypi.org/project/zai/)
|
||||
[](https://pypi.org/project/zai-sdk/)
|
||||
[](https://opensource.org/licenses/MIT)
|
||||
[](https://www.python.org/downloads/)
|
||||
|
||||
[中文文档](README_CN.md) | English
|
||||
|
||||
The official Python SDK for Z.ai's large model open interface, making it easier for developers to call Z.ai's open APIs.
|
||||
[Z.ai Open Platform](https://docs.z.ai/) The official Python SDK for Z.ai's large model open interface, making it easier for developers to call Z.ai's open APIs.
|
||||
|
||||
## ✨ Core Features
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ The official Python SDK for Z.ai's large model open interface, making it easier
|
|||
### Install via pip
|
||||
|
||||
```bash
|
||||
pip install z-ai
|
||||
pip install zai-sdk
|
||||
```
|
||||
|
||||
### 📋 **Technical Specifications**
|
||||
|
|
|
|||
10
README_CN.md
10
README_CN.md
|
|
@ -1,12 +1,12 @@
|
|||
# Z.ai 开放平台 Python SDK
|
||||
|
||||
[](https://pypi.org/project/z-ai/)
|
||||
[](LICENSE)
|
||||
[](https://www.python.org/)
|
||||
[](https://pypi.org/project/zai-sdk/)
|
||||
[](https://opensource.org/licenses/MIT)
|
||||
[](https://www.python.org/downloads/)
|
||||
|
||||
[English Readme](README.md)
|
||||
|
||||
[ Z.ai 开放平台](https://github.com/THUDM/z-ai-sdk-python)官方 Python SDK,帮助开发者快速集成 Z.ai 强大的人工智能能力到Python应用中。
|
||||
[Z.ai 开放平台](https://docs.z.ai/)官方 Python SDK,帮助开发者快速集成 Z.ai 强大的人工智能能力到Python应用中。
|
||||
|
||||
## ✨ 核心功能
|
||||
|
||||
|
|
@ -55,7 +55,7 @@
|
|||
### 使用 pip 安装
|
||||
|
||||
```sh
|
||||
pip install z-ai
|
||||
pip install zai-sdk
|
||||
```
|
||||
### 📋 **技术规格**
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ This initial release provides comprehensive access to Z.ai's powerful AI capabil
|
|||
### 🚀 **Getting Started**
|
||||
|
||||
```bash
|
||||
pip install z-ai
|
||||
pip install zai-sdk
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
@ -212,7 +212,7 @@ For future versions, migration guides will be provided here to help you upgrade
|
|||
### 🚀 **快速开始**
|
||||
|
||||
```bash
|
||||
pip install z-ai
|
||||
pip install zai-sdk
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
|||
Loading…
Reference in a new issue