No project description provided
Project description
langchain-wenxin - Langchain Baidu WENXINWORKSHOP wrapper
Table of Contents
Installation
pip install langchain-wenxin
Document
WENXINWORKSHOP API: https://cloud.baidu.com/doc/WENXINWORKSHOP/s/flfmc9do2
How to use
export BAIDU_API_KEY="xxxxx"
export BAIDU_SECRET_KEY="xxxxx"
from langchain_wenxin.llms import Wenxin,ChatWenxin
# Wenxin model
llm = Wenxin()
print(llm("你好"))
# Wenxin chat model
from langchain.schema import HumanMessage
llm = ChatWenxin()
print(llm([HumanMessage(content="你好")]))
License
langchain-wenxin
is distributed under the terms of the MIT license.
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
langchain_wenxin-0.0.1.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for langchain_wenxin-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41655ca4147b156e3d1b73bf76a0809fef1ebb152e505f5c7fe6665dfcb6d0cf |
|
MD5 | 206af7f1ae3987e5498969bd328dee45 |
|
BLAKE2b-256 | 6b4fbc468e2d038bbadb58611ab6af9b70171adea01e53be0e73811de1f29c7f |