M4R774 / bobweb2

Telegram botti piristämään elämää
MIT License
8 stars 1 forks source link

Add openai dalle command #233

Closed Latemus closed 1 year ago

Latemus commented 1 year ago

Added '/dalle' command that generates image using OpenAi's API and Dall-e 2 model. Abstracted a lot of implementation for generating images from user given prompt. Now commands dallemini and dalle are using as much shared code as is suitable. In addition extracted openai api related bot's cost state management and api usage permission check out of gpt-command to own module as now dalle-command is using them as well.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

96.8% 96.8% Coverage
0.0% 0.0% Duplication