Giter Club home page Giter Club logo

scrapbox_chatgpt_connector's Introduction

Scrapbox ChatGPT Connector

The Scrapbox ChatGPT Connector is a simple script for connecting Scrapbox and ChatGPT.

The script is designed so that developers can easily grasp the big picture and customize it to their own needs. Also, the purpose of the project is to show a simple implementation, not to satisfy a wide variety of needs. I encourage everyone to understand the source code and customize it to their own needs.

For Japanese reader

Visit https://scrapbox.io/villagepump/Scrapbox_ChatGPT_Connector

How to install

Clone the GitHub repository.

Run the following commands to install the required libraries.

$ pip install -r requirements.txt

How to use

Obtain an OpenAI API token and save it in an .env file.

 OPENAI_API_KEY=sk-...

Make index.

$ python make_index.py

It outputs like below:

code:: % python make_index.py 97%|███████████████████████████████████████████████████████████████████████████████████████████████████▉ | 846/872 [07:06<00:10, 2.59 It/s]The server is currently overloaded with other requests. Sorry about that! You can retry your request, or contact us through our help center at help. openai.com if the error persists. 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████| 872/872 [07:45<00:00, 1 .87it/s]

Ask.

$ python ask.py

It outputs like below:

>>>> What is the most important question?
> The most important question is to know ourselves.

License The Scrapbox ChatGPT Connector is distributed under the MIT License. See the LICENSE file for more information.

scrapbox_chatgpt_connector's People

Contributors

nishio 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.