matrix-gptbot/src/gptbot
Kumi 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
..
assets Make it an importable module 2023-05-25 07:28:28 +00:00
callbacks Bump version to 0.1.0 2023-05-25 12:41:32 +00:00
classes Update OpenAI configuration with ImageModel and related changes 2023-11-07 14:02:10 +01:00
commands Fix message sending in newroom command 2023-05-25 10:50:37 +00:00
migrations Fix type hints in migrations 2023-06-01 06:23:48 +00:00
__init__.py Make it an importable module 2023-05-25 07:28:28 +00:00
__main__.py Version bump to 0.1.1 2023-06-01 06:34:09 +00:00