A large chinese freelanguage chain tools,you can get free API from:open.bigmodel.cn
Project description
LMchain is a toolkit specifically adapted for chinese large model chains
Lmchain是专用为中国大陆用户提供免费大模型服务的工具包,目前免费推荐使用chatGLM。
免费用户可以在https://open.bigmodel.cn 注册并获取免费API。也可以使用lmchain中自带的免费key。
功能正在陆续添加中,用户可以在issues中发表内容,也可以与作者联系5847713@qq.com 欢迎提出您的想法和建议。
注意:lmchian随着GLM4的更新,已全新更新为新的API,老的基本GLM3版本的用户可以继续使用(版本最高为0.1.78)。
使用方法:pip install lmchain
1、从一个简单的文本问答如下
from lmchain.agents import AgentZhipuAI
llm = AgentZhipuAI()
response = llm("你好")
print(response)
response = llm("南京是哪里的省会")
print(response)
response = llm("那里有什么好玩的地方")
print(response)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file LMchain-0.2.26.tar.gz.
File metadata
- Download URL: LMchain-0.2.26.tar.gz
- Upload date:
- Size: 35.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c4e44ad81e7574910e867102b89ea0b8c6e3ca2b6fa4b3fbfd7515fd0eba185
|
|
| MD5 |
3be26ba025157d0167faa0fd6f9b4552
|
|
| BLAKE2b-256 |
c03bc5519dc25299dc06e40c82597064ceafb819fc7b57b024d2cc4397b6171c
|
File details
Details for the file LMchain-0.2.26-py3-none-any.whl.
File metadata
- Download URL: LMchain-0.2.26-py3-none-any.whl
- Upload date:
- Size: 177.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73db47f3176f04ab9bdb3ed39f54efa6d9500fa8c01d65238a7b157222c91876
|
|
| MD5 |
caaf8c4885f9d2e71c186626121a0aa8
|
|
| BLAKE2b-256 |
332e7b0fcbb489e2f52e76d0d4b53900e3a23f0cf286f2c0b1060517f36e33c3
|