https://github.com/nriver/trilium-chatgpt
Communicate between Trilium Notes and ChatGPT
https://github.com/nriver/trilium-chatgpt
Last synced: 11 months ago
JSON representation
Communicate between Trilium Notes and ChatGPT
- Host: GitHub
- URL: https://github.com/nriver/trilium-chatgpt
- Owner: Nriver
- License: agpl-3.0
- Created: 2023-05-19T09:47:49.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-19T09:59:39.000Z (about 3 years ago)
- Last Synced: 2025-03-02T21:31:25.353Z (over 1 year ago)
- Language: Python
- Size: 16.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Trilium-ChatGPT
This project enables communication between Trilium Notes and ChatGPT, acting as a middle service that facilitates
querying ChatGPT and saving the responses to your Trilium Notes.
## How to Use
1. Install Python 3 on your machine.
2. Clone the code repository:
```
git clone https://github.com/Nriver/trilium-chatgpt
```
3. Install the required dependencies:
```
cd trilium-chatgpt
pip install -r requirements.txt
```
4. Open the `settings.py.sample` file, modify the configurations according to your needs, and rename it
to `settings.py`. You will need to set your OpenAI API key, Trilium's ETAPI token, and other relevant settings.
5. Run the application:
```
python3 main.py
```
6. Open your web browser and test the functionality by accessing `http://127.0.0.1:5000/query?keyword=Trilium+Notes`.
This should create a new note under the specified note ID.
7. Optionally, you can set the search engine to `http://127.0.0.1:5000/query?keyword={keyword}` in Trilium. This allows
you to select some text, right-click, and search ChatGPT with the selected text.
Please note that you may need to customize the configurations further to suit your specific environment and
requirements.