Nelluk 91b1402cb6
Make ChatGPT base_url configurable (#73)
* Add configurable base_url

* Conditionally exclude a parameter if Gemini is the model

Sorry for the delay on this... The readme and help texts need updating, maybe few tweaks here and there, but obviously I never got around to it personally, and this is still a great addition, so going to just commit as is for now since you were thoughtful enough to make sure it doesn't break anything. Thanks again.
2025-03-13 00:17:49 -04:00
..
2023-03-20 16:54:00 -04:00
2023-03-20 16:54:00 -04:00
2024-08-13 17:58:12 -04:00
2023-03-20 17:30:09 -04:00
2023-03-20 16:54:00 -04:00
2023-03-20 16:54:00 -04:00

Use the OpenAI ChatGPT API

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

@config plugins.chatgpt.api_key YOUR_KEY_HERE

Model:

@config plugins.chatgpt.model gpt-4o-mini

^^ Use this config to set the language model. Current recommendation: gpt-4o-mini

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"

^^ 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>

^^ Command to send text to the chatgpt API

@messageparser add "(?i)(.*BOT_NICK_HERE.*)" "chat $1"

^^ replace BOT_NICK_HERE with your bot nick and add automatic replies to nick mentions.

@config reply.whenaddressedby.nick False

^^ You might want to set the above to false if using messageparser to reply on nick mentions.