Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nishio/scrapbox_chatgpt_connector
ChatGPT reads Scrapbox
https://github.com/nishio/scrapbox_chatgpt_connector
Last synced: 3 months ago
JSON representation
ChatGPT reads Scrapbox
- Host: GitHub
- URL: https://github.com/nishio/scrapbox_chatgpt_connector
- Owner: nishio
- License: mit
- Created: 2023-03-09T01:22:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-03-27T02:48:47.000Z (over 1 year ago)
- Last Synced: 2024-06-15T15:33:39.370Z (5 months ago)
- Language: Python
- Size: 332 KB
- Stars: 64
- Watchers: 2
- Forks: 24
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ChatGPT-repositories - scrapbox_chatgpt_connector - ChatGPT reads Scrapbox (Others)
README
# 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.