Commit graph

164 commits

Author SHA1 Message Date
54f56c1b1a
Add launch configuration for Python module 2023-11-19 15:38:43 +01:00
fbbe82a1fc
Refactor image generation code with dynamic size and model
The commit modifies the image generation code in the OpenAI class. The size and model of the generated image can now be dynamically set based on the provided prompt. The code has been refactored to handle different image sizes and models correctly.
2023-11-19 15:38:34 +01:00
14da88de8b
feat: Improve image generation quality selection
The code change adds a conditional statement to select the image generation quality based on the selected image model.
2023-11-19 15:26:09 +01:00
474af54ae1
Start assistant implementation to support generating responses using an assistant if the room uses an assistant. Also, add methods to create and setup an assistant for a room. 2023-11-19 15:24:22 +01:00
2269018e92
Work towards encryption support 2023-11-11 17:22:43 +01:00
09393b4216
Remove debugging output that is no longer needed 2023-11-11 14:54:40 +01:00
48f13fcf7f
Fix truncation calculation 2023-11-11 13:32:31 +01:00
0317b2f5aa
Improve handling of event and other messages for chat response
Remove limitation of number of attached images for image-aware chat completions
2023-11-11 13:26:21 +01:00
4113a02232
Add image input on models that support it, fix some bugs, bump required OpenAI version 2023-11-11 12:27:19 +01:00
c238da9b99
openai: Fix image_model assignment, add method to check if the used chat model supports images messages 2023-11-11 09:51:28 +01:00
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