Skip to content

Commit 5b1e95d

Browse files
authored
Switch default image generation model to gpt-image-1 (#321)
1 parent f24cef4 commit 5b1e95d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ RubyLLM.configure do |config|
7474
# Used by RubyLLM.chat, RubyLLM.embed, RubyLLM.paint if no model is specified.
7575
config.default_model = 'gpt-4.1-nano' # Default: 'gpt-4.1-nano'
7676
config.default_embedding_model = 'text-embedding-3-small' # Default: 'text-embedding-3-small'
77-
config.default_image_model = 'dall-e-3' # Default: 'dall-e-3'
77+
config.default_image_model = 'gpt-image-1' # Default: 'gpt-image-1'
7878

7979
# --- Connection Settings ---
8080
config.request_timeout = 120 # Request timeout in seconds (default: 120)
@@ -154,7 +154,7 @@ These settings determine which models are used by the top-level helper methods (
154154

155155
* `config.default_model`: Used by `RubyLLM.chat`. Default: `'gpt-4.1-nano'`.
156156
* `config.default_embedding_model`: Used by `RubyLLM.embed`. Default: `'text-embedding-3-small'`.
157-
* `config.default_image_model`: Used by `RubyLLM.paint`. Default: `'dall-e-3'`.
157+
* `config.default_image_model`: Used by `RubyLLM.paint`. Default: `'gpt-image-1'`.
158158

159159
Choose defaults that match your most common use case and provider availability.
160160

docs/guides/image-generation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ The `paint` method abstracts the differences between provider APIs.
6464

6565
## Choosing Models
6666

67-
By default, RubyLLM uses the model specified in `config.default_image_model` (defaults to `dall-e-3`), but you can specify a different one.
67+
By default, RubyLLM uses the model specified in `config.default_image_model` (defaults to `gpt-image-1`), but you can specify a different one.
6868

6969
```ruby
70-
# Explicitly use DALL-E 3
70+
# Use DALL-E 3
7171
image_dalle = RubyLLM.paint(
7272
"Impressionist painting of a Parisian cafe",
7373
model: "dall-e-3"
@@ -92,7 +92,7 @@ You can configure the default model globally:
9292

9393
```ruby
9494
RubyLLM.configure do |config|
95-
config.default_image_model = "dall-e-3" # Or another available image model ID
95+
config.default_image_model = "gpt-image-1" # Or another available image model ID
9696
end
9797
```
9898

lib/ruby_llm/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def initialize
5757
# Default models
5858
@default_model = 'gpt-4.1-nano'
5959
@default_embedding_model = 'text-embedding-3-small'
60-
@default_image_model = 'dall-e-3'
60+
@default_image_model = 'gpt-image-1'
6161

6262
# Logging configuration
6363
@log_file = $stdout

0 commit comments

Comments
 (0)