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)
Metadata
Release files for LMchain 0.2.26
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| LMchain-0.2.26.tar.gz | 35.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| LMchain-0.2.26-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 212.8 kB
Release files / LMchain-0.2.26.tar.gz
| Download URL | LMchain-0.2.26.tar.gz |
|---|---|
| Size | 35.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c4e44ad81e7574910e867102b89ea0b8c6e3ca2b6fa4b3fbfd7515fd0eba185
|
|
BLAKE2b-256 checksum How to use checksums |
c03bc5519dc25299dc06e40c82597064ceafb819fc7b57b024d2cc4397b6171c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / LMchain-0.2.26-py3-none-any.whl
| Download URL | LMchain-0.2.26-py3-none-any.whl |
|---|---|
| Size | 177.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73db47f3176f04ab9bdb3ed39f54efa6d9500fa8c01d65238a7b157222c91876
|
|
BLAKE2b-256 checksum How to use checksums |
332e7b0fcbb489e2f52e76d0d4b53900e3a23f0cf286f2c0b1060517f36e33c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|