Giter Club home page Giter Club logo

llama-qq-chatbot's Introduction

LLaMA QQ Chatbot

Usage

  1. Install Node.js. (Version 14+ required)

  2. Install dependencies with the following lines.

git clone https://github.com/hiyouga/LLaMA-QQ-Chatbot.git
cd LLaMA-QQ-Chatbot
npm i
  1. Replace lib/bot.js line 4-5 with your QQ account.

  2. Launch app with node app.

LLaMA API

We recommend to use the Demo API of LLaMA-Efficient-Tuning.

llama-qq-chatbot's People

Contributors

hiyouga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

llama-qq-chatbot's Issues

哦?

冰酱是用冰河的素材训练的AI么

bot无法做出回复

输入的是你好,私聊和群聊都试过了,但是只有私聊会报错,群聊只会显示接收到消息,但是glm的窗口没反应

这是私聊时,glm的报错:
query: 你好
Exception on /msg [POST]
Traceback (most recent call last):
File "G:\anaconda3\envs\ChatGLM\lib\site-packages\flask\app.py", line 2528, in wsgi_app
response = self.full_dispatch_request()
File "G:\anaconda3\envs\ChatGLM\lib\site-packages\flask\app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
File "G:\anaconda3\envs\ChatGLM\lib\site-packages\flask\app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
File "G:\anaconda3\envs\ChatGLM\lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "G:\ChatGLM\Ice-chan-main\web_chatglm.py", line 129, in msg
response = bot.chat(query)
File "G:\ChatGLM\Ice-chan-main\web_chatglm.py", line 78, in chat
response, _ = self._model.chat(self._tokenizer, query, history=self._history)
File "G:\anaconda3\envs\ChatGLM\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "C:\Users\asus/.cache\huggingface\modules\transformers_modules\local\modeling_chatglm.py", line 1253, in chat
outputs = self.generate(**inputs, **gen_kwargs)
File "G:\anaconda3\envs\ChatGLM\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "G:\anaconda3\envs\ChatGLM\lib\site-packages\transformers\generation\utils.py", line 1437, in generate
return self.sample(
File "G:\anaconda3\envs\ChatGLM\lib\site-packages\transformers\generation\utils.py", line 2440, in sample
model_inputs = self.prepare_inputs_for_generation(input_ids, **model_kwargs)
File "C:\Users\asus/.cache\huggingface\modules\transformers_modules\local\modeling_chatglm.py", line 1120, in prepare_inputs_for_generation
logger.warning_once(f"The dtype of attention mask ({attention_mask.dtype}) is not bool")
AttributeError: 'Logger' object has no attribute 'warning_once'
127.0.0.1 - - [16/Apr/2023 17:28:57] "POST /msg HTTP/1.1" 500 -

私聊时icqq的报错(但是为什么这一段是html啊):
<!doctype html>

<title>500 Internal Server Error</title>

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

首先感谢作者

我在倒数第二步遇到了点问题,找不到index.js,最后是在bot.js里找到了类似的代码段,只填了自己的QQ号码,但是执行npm run dev的时候蹦出来的二维码qq上扫了之后提示登陆环境有风险,不允许登录。在bot.js里下还有个const password =“”,那填写了qq的密码之后要求去网页滑动验证获取ticket,但是复制过来后提示[icqq] - token失效: [禁止登录]登录失败,建议升级最新版本后重试,或通过问题反馈与我们联 系。(错误码:45)
[2023-04-03T16:35:16.683] [ERROR] [icqq] - [禁止登录]登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。请问可否告诉小白是哪一步出了问题呢QAQ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.