Commit graph

204 commits

Author SHA1 Message Date
1b290c6b92
Revert last commit 2023-11-09 12:31:46 +01:00
37a1e6a85c
Fix handling of commands in GPTBot class 2023-11-09 12:30:12 +01:00
72340095f9
Fix bot command prefix recognition and handle ignore bot commands.
- Fixed bot command prefix recognition to include prefixes starting with an asterisk (= edited messages)
- Added handling of ignoring bot commands in the '_last_n_messages' method.
2023-11-09 12:29:04 +01:00
2e6c07eb22
Fix issue with OpenAI class to set the quality parameter based on the model type. 2023-11-07 15:55:25 +01:00
5a1a3733c5
Update OpenAI configuration with ImageModel and related changes
Previously, there was no option to specify the model for image generation in the OpenAI configuration. This commit adds a new option called "ImageModel" where you can specify the desired model. The default value for this option is "dall-e-2".

In the `GPTBot` class, the OpenAI object is now initialized with the `ImageModel` option if it is provided in the configuration. This allows the bot to use the specified image generation model in addition to the chat model.

Furthermore, in the `OpenAI` class, the `image_api` attribute has been renamed to `image_model` to reflect its purpose more accurately. The default value has also been updated to "dall-e-2" to align with the new configuration option.

This commit ensures that the OpenAI configuration is up-to-date and allows users to specify the desired image generation model.
2023-11-07 14:02:10 +01:00
d2c6682faa
Version bump to 0.1.1 2023-06-01 06:34:09 +00:00
8147a89f69
Merge branch 'thebalaa-main' 2023-06-01 06:28:22 +00:00
136f56f208
Merge branch 'main' of https://github.com/thebalaa/matrix-gptbot into thebalaa-main 2023-06-01 06:27:58 +00:00
27078243a8
Merge branch 'thebalaa-main' 2023-06-01 06:24:45 +00:00
f419206a9a
Fix type hints in migrations 2023-06-01 06:23:48 +00:00
Mo Balaa
0b0bf8a673 Fixes to get working out of the box 2023-05-31 23:29:51 -05:00
b1b274be57
Allow setting BaseURL for OpenAI API 2023-05-31 18:21:07 +00:00
2b6969dfe8
Fix pip install command in development docs 2023-05-25 15:46:38 +00:00
cce082ef67
Bump version to 0.1.0
Improve logging
Black formatting
2023-05-25 12:41:32 +00:00
c188223cea
Whelp. 2023-05-25 12:05:07 +00:00
45c336e609
Fix message sending in newroom command 2023-05-25 10:50:37 +00:00
154e234943
Fix README 2023-05-25 10:17:20 +00:00
55809a9a39
Make it an importable module
Abandon DuckDB in favor of sqlite3
2023-05-25 07:28:28 +00:00
3a1d1ea86a
Merge branch 'justin-russell-bugfixes' 2023-05-20 19:11:54 +00:00
Justin
861b82061f Use suggested migration fix 2023-05-20 11:20:54 -05:00
Justin
b41a9ecd14 Adds retry logic for failed openai requests 2023-05-19 15:37:04 -05:00
Justin
6c97c0f61d Cleanup unused imports 2023-05-19 14:54:51 -05:00
Justin
cdca5fb124 using openai async methods 2023-05-19 14:52:20 -05:00
Justin
f118a23714 Makes OpenAI calls awaitable 2023-05-19 12:43:19 -05:00
Justin
a546e969cc Fix latest migration not applying 2023-05-19 12:06:19 -05:00
Justin
9c2c4d5f6f Run OpenAI calls async 2023-05-19 11:43:57 -05:00
Justin
e200393670 Cleanup unused imports. Fixes a few variables 2023-05-19 11:12:31 -05:00
Justin
8417442d0f Fix migrations off by one 2023-05-19 11:09:06 -05:00
e93072af2e
Simple way of preventing spaces from being added to themselves 2023-05-12 07:54:29 +00:00
50f4a11f00
Implement simple permission system 2023-05-09 12:32:35 +00:00
9f520b7340
Set logo on space creation 2023-05-09 11:57:08 +00:00
cfeaae3fac
Add an AI generated logo
Set logo as room/space avatar
Stay admin when creating a room
Add a settings table to the database
2023-05-09 11:30:51 +00:00
3d32343e54
Add spaces feature 2023-05-09 10:27:03 +00:00
7fbeff9d9c
TrackingMore integration
Fix newroom command
2023-05-05 11:58:57 +00:00
85cfecf88a
Add option for timing message processing
Fixes
2023-05-02 06:58:49 +00:00
ca947383f9
Fix newroom command 2023-05-01 19:27:45 +00:00
551fec9050
Fix README 2023-05-01 16:48:49 +00:00
85a04c4188
Implement quiet mode (not responding to everything)
More README content
"Fixing" auto-joining
2023-05-01 16:47:01 +00:00
1ed989c9b9
Fix README 2023-05-01 15:50:13 +00:00
5b500d34b5
Prepare for option to disable replying to everything
Automatically accept room invites on sync
Leave rooms if everyone else leaves
README update
!gptbot dice command
Minor fixes
2023-05-01 15:49:26 +00:00
e369b63baf
Accept pending invites on sync 2023-05-01 15:04:01 +00:00
5ea32b2295
Slightly improve ordering of commands in help text 2023-05-01 08:43:25 +00:00
e17dff0644
Minor fix, README update 2023-05-01 08:39:59 +00:00
5997ee8ab1
Implement chat message classification
!gptbot roomsettings command
Permit custom commands (!gptbot custom ...)
2023-05-01 08:12:50 +00:00
2fb607310d
Preparation for automatic message classification 2023-05-01 06:11:43 +00:00
bf23771989
Added support for DALL-E and WolframAlpha
New "imagine" and "calculate" commands
Implemented image sending
Moved OpenAI specific code to OpenAI class
Abstracted away OpenAI API in bot class
Minor fixes
2023-04-28 10:01:27 +00:00
9f5e87db4c
Update required Python version
Add -u switch to systemd service unit to make output unbuffered
2023-04-25 16:56:20 +00:00
1dc0378853
Create a bot class
Make everything compatible with that
2023-04-25 11:25:53 +00:00
2bbc6a33ca
Moving migrations to subdirectory
Add option for custom system messages per room
Fixing some methods in store
2023-04-24 08:48:59 +00:00
f20b762558
Some refactoring, starting implementation of encryption 2023-04-23 13:26:46 +00:00