Git Product home page Git Product logo

qchatgpt_plugin_weather's Introduction

安装

配置完成 QChatGPT 主程序后使用管理员账号向机器人发送命令即可安装:

!plugin get <插件发布仓库地址>

或查看详细的插件安装说明

使用

可以查询国内城市未来七天的详细天气情况

前往https://www.alapi.cn/ 进行注册(截至上传时是免费的)

在控制面板左侧——接口管理——更新Token密钥,点击Copy复制Token

在本插件文件夹下main.py文件中找到这行,并替换成你获取到的token(不要弄丢引号)

self.token = 'YOURTOKEN'  # 请将这里的'YOUR_TOKEN'替换为你实际获取的token

配置GPT

可以选择使用场景模式 提示词举例:

当我问你查询某个城市的天气情况,请你返回引号中的内容,不包括引号,例如查询南京今天的天气时返回“为你查询城市:南京今天的天气情况”

qchatgpt_plugin_weather's People

Contributors

zzseki avatar

Stargazers

 avatar  avatar Junyan Qin avatar

Watchers

 avatar

qchatgpt_plugin_weather's Issues

无法运行

因为无法使用bot安装,所以便想着手动安装
但安装好了但好像运行不起来
日志:root@hcss-ecs-bae2:~/QChatGPT/plugins/QChatGPT_Plugin_Weather# python main.py
Traceback (most recent call last):
File "/root/QChatGPT/plugins/QChatGPT_Plugin_Weather/main.py", line 1, in
from pkg.plugin.context import (
ModuleNotFoundError: No module named 'pkg'

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.