Giter Site home page Giter Site logo

cmd_chatgpt's Introduction

Cmd_ChatGPT

终端内快捷使用ChatGPT

效果

image-20230309170642968

介绍

  • 同一个问题,返回两次结果,可用来做对比。因为ChatGPT一本正经说瞎话可是出了名的。所以建议用两个token,py脚本内本人用了两个token。
  • 请求耗时取决于自己的代理,py脚本内用的是http代理,端口为1087,可自行修改。
  • 另外本人各个参数设置得比较高,问题的回答随机性较大。若使用不舒服建议自己设置各参数,脚本内有说明。

使用方式

  1. 安装所需依赖

    pip install -r requirements.txt
    
  2. 这里申请两个token,分别填入脚本内token1、token2

  3. 添加下面内容至~/.bashrc,xxxxx为脚本的绝对路径。保存后新建终端就可以使用了。

    #chatGPT cmd
    alias q="python xxxxx/cmd_ChatGPT.py -q "
    alias 去="python xxxxx/cmd_ChatGPT.py -q "
    
  4. 终端内使用

    ###个人觉得Q键在左手边比较容易按
    q  你叫什么名字 谁给你取的呢
    ###或者
    去 你叫什么名字 谁给你取的呢
    

友情提示:

任何问题(包括有空格的问题)都可以直接输入终端;但当需要问有回车换行的内容(比如代码块)需要使用三引号包裹代码块

img202303091849590

224000550-d90dec07-3b52-43e0-8b35-5d4314f34b82

cmd_chatgpt's People

Contributors

klearcc avatar

Watchers

 avatar

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.