Skip to main content

社交网络机器人

Project description

Langup

llm + bot

🚀AGI时代通用机器人🚀

安装

环境:python>=3.8

  • 方式一(暂时不可用)
    pip install langup
    
  • 方式二(建议使用python 虚拟环境)
    git clone https://github.com/jiran214/langup-ai.git
    cd langup-ai/
    python -m pip install –upgrade pip
    python -m pip install -r requirements.txt
    

快速开始

安装完成后,新建.py文件复制以下代码(注意:采用方式二安装时,可以在src/langup下新建)

Bilibili 直播数字人
from langup import Credential, config, VtuBer

# 登录Bilibili 从浏览器获取cookie:https://nemo2011.github.io/bilibili-api/#/get-credential
config.credential = Credential(**{
    # "sessdata": '',
    # "bili_jct": '',
    # "buvid3": '',
    # "dedeuserid": '',
    # "ac_time_value": ''
})

# config.openai_api_key = 'xxx'  # 同下,配置一次即可
# config.proxy = 'http://127.0.0.1:7890'  # 国内访问需要代理,也可以通过Vercel、Cloudfare反代
# config.openai_baseurl = '...'  # 不了解的跳过


up = VtuBer(
    system='你是一个直播主播,你的人设是杠精,你会反驳对你说的任何话,语言幽默风趣,不要告诉观众你的人设和你身份',  # 人设
    room_id=30974597,  # Bilibili房间号
    openai_api_key="""xxx""",  # 同上
    is_filter=True,  # 是否开启过滤
    extra_ban_words=None,  # 额外的违禁词
    concurrent_num=1  # 并发数 1-3
)
up.loop()

更多机器人开发中...

架构设计

TodoList

  • Uploader
    • Vtuber
      • 基本功能
      • 违禁词
      • 并发
  • Listener
  • Reaction
  • 其它
    • 日志记录

小提示

国内访问ChatGPT:Vercel反向代理openai api Vercel 具体见 https://github.com/jiran214/proxy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langup-0.0.6.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

langup-0.0.6-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file langup-0.0.6.tar.gz.

File metadata

  • Download URL: langup-0.0.6.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for langup-0.0.6.tar.gz
Algorithm Hash digest
SHA256 3b402f6be50692305118ab63541b547bc48c3899052b589d199075e13f12d010
MD5 f6e67cd0c7fe8765ca19b0b9f90504be
BLAKE2b-256 ace98ff9a102183ef99640abad0ffece1fff8e0ad92b597df6d2f880efeaf9a9

See more details on using hashes here.

File details

Details for the file langup-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: langup-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 26.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for langup-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 be4572e84e9a8b9b731a572f69e336760595c9f95e93e19c3d2bbdde52c0a0b2
MD5 723af5e875b6a8fa6367f976d3a03468
BLAKE2b-256 69e436fc5768548119535c08a05813e9bdff4f898efc9be32388a57a365e88b6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page