- Introduced constant MODELS for managing model names. - Updated the `generate_image` method to switch between FLUX and DALL-E 3. - Added `generate_image_dalle` and `generate_image_flux` methods for respective API calls. - Enhanced prompts for image generation across both models, ensuring correct message construction. This update enables users to generate images using different AI models dynamically, allowing for flexible integration and improved user experience. The handling of errors now falls back to the DALL-E model if the FLUX API fails. |
||
---|---|---|
.github | ||
.kamal | ||
app | ||
bin | ||
config | ||
db | ||
lib | ||
log | ||
public | ||
script | ||
storage | ||
test | ||
tmp | ||
vendor | ||
.dockerignore | ||
.gitattributes | ||
.gitignore | ||
.node-version | ||
.rubocop.yml | ||
.ruby-version | ||
compose.yaml | ||
config.ru | ||
Dockerfile | ||
Gemfile | ||
Gemfile.lock | ||
package.json | ||
Procfile.dev | ||
Rakefile | ||
README.md | ||
tailwind.config.js | ||
yarn.lock |
README
This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...