ChatGPT: Update README.md

This commit is contained in:
Gordon Shumway 2024-08-06 15:27:54 -04:00 committed by GitHub
parent 6c115841fd
commit 849d29fc28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,15 +2,28 @@ Use the OpenAI ChatGPT API
This plugin is under development and probably shouldn't be used by anyone... This plugin is under development and probably shouldn't be used by anyone...
Get an API key from https://platform.openai.com/account/api-keys (free) Get an API key from https://platform.openai.com/account/api-keys
``` ```
@config plugins.chatgpt.api_key YOUR_KEY_HERE @config plugins.chatgpt.api_key YOUR_KEY_HERE
``` ```
system prompt:
History:
```
@config plugins.chatgpt.max_history 10
```
^^ Use this config to set maximum number of messages to keep in your history. 0 to disable.
System Prompt:
``` ```
@config plugins.chatgpt.prompt "You are $botnick the IRC bot. Be brief, helpful" @config plugins.chatgpt.prompt "You are $botnick the IRC bot. Be brief, helpful"
``` ```
^^ Configurable per channel, etc. get creative ^^ Configurable per channel, etc. get creative
```
@config list plugins.chatgpt
```
^^ Please take a look at the various options and configure stuff before you do anything.
``` ```
@chat <text> @chat <text>
``` ```