npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

kivibot-plugin-chatgptv2

v2.0.13

Published

[优化中]QQ 机器人框架 KiviBot 的 ChatGPT 插件的v2版本,更精确但需要更复杂的环境和配置

Downloads

14

Readme

Chatgpt-v2 for KiviBot

npm-version dm

KiviBotChatgpt 插件v2版本,调用官方GPT-3模型更近准,但需要更「科学」的网络环境和更复杂的环境。

由于Chatgpt访问量过大,官方加了Cloudflare进行访问保护,可能会遇到需要间隔一段时间就需要进行 CAPTCHA 验证的情况,在官方提供API之前本项目依然处于不稳定的状态。

前置需求

  • 已安装谷歌浏览器
  • Nodejs 最低版本 18
  • 全局科学上网/配置代理服务

安装

/plugin add chatgptv2

启用

/plugin on chatgptv2

启用后框架会打开Google Chrome浏览器并自动进入chatgpt对话页面,可能会遇见 CAPTCHA 验证失败的情况,手动完成验证进入下个页面即可;使用过程中请勿关闭浏览器页面。

使用

%帮我写一段Java代码
@bot 帮我写一段Java代码

指令

# 设置邮箱
/chatgpt setEmail <email>
# 设置密码
/chatgpt setPassword <password>
# 设置启用/停用谷歌登录
/chatgpt googleLogin <on/off>
# 设置启用/停用 @ 触发
/chatgpt at <on/off>
# 设置触发的前缀
/chatgpt prefix <prefix>

配置

编辑 框架目录/data/plugins/chatgptv2/config.json 文件。

{
    // ChatGPT 账号
    email: '',
    password: '',
    // 是否用谷歌账号登录(为true时上方为关联的谷歌账号邮箱)
    //(使用谷歌账号登录可避免复杂的机器人验证)
    isGoogleLogin: false,
    // 代理服务 格式 <ip>:<port>,无需代理的情况下留空
    // 以v2ray为例 'socks5://127.0.0.1:10808'
    proxyServer: '',
    // 是否开启 at 触发
    enableAt: true,
    // 触发命令前缀
    cmdPrefix: '%'
}

然后使用以下命令重载插件生效。

/plugin reload chatgptv2

已知问题

  • 非美国的「科学上网」容易导致在继续话题的情况中发生 429(频繁访问) 错误,目前只能通过换更好的网络环境解决。
  • 根据网络状况和登录时长可能会多次进行 CAPTCHA 验证。chatgpt-api推荐有财力的订阅下面的框架:
    • nopecha - 使用AI来验证 CAPTCHAS (用魔法打败魔法!) 更快且更便宜
    • 2captcha - 使用人工来验证 CAPTCHAS 更精准,不易产生问题
    • 以上两种方式兼容api直接配置密钥,会在稍后的更新中添加配置字段
  • OpenAI 在加强模型的伦理性上有很强的趋势,很多魔法例如让AI变为猫娘的语句已经受到了约束,目前可以通过更改语句细节和重试来获得更满意的结果,但未来会如何发展不得而知