@@ -111,7 +111,7 @@ Once your models are set up, you can use them like any other Rails model:
111111
112112``` ruby
113113# Create a new chat
114- chat = Chat .create!(model_id: ' gpt-4o-mini ' )
114+ chat = Chat .create!(model_id: ' gpt-4.1-nano ' )
115115
116116# Ask a question
117117chat.ask " What's the capital of France?"
@@ -134,7 +134,7 @@ Instructions help guide the AI's behavior throughout a conversation. With Rails
134134
135135``` ruby
136136# Create a new chat
137- chat = Chat .create!(model_id: ' gpt-4o-mini ' )
137+ chat = Chat .create!(model_id: ' gpt-4.1-nano ' )
138138
139139# Add instructions (these are persisted)
140140chat.with_instructions(" You are a helpful Ruby programming assistant. Always include code examples in your responses and explain them line by line." )
198198You can stream responses while still persisting the final result:
199199
200200``` ruby
201- chat = Chat .create!(model_id: ' gpt-4o-mini ' )
201+ chat = Chat .create!(model_id: ' gpt-4.1-nano ' )
202202
203203chat.ask " Write a short poem about Ruby" do |chunk |
204204 # Stream content to the user
@@ -317,7 +317,7 @@ class Weather < RubyLLM::Tool
317317end
318318
319319# Add the tool to your chat
320- chat = Chat .create!(model_id: ' gpt-4o-mini ' )
320+ chat = Chat .create!(model_id: ' gpt-4.1-nano ' )
321321chat.with_tool(Weather )
322322
323323# Ask a question that requires calculation
@@ -389,7 +389,7 @@ class Chat < ApplicationRecord
389389end
390390
391391# Usage
392- user.chats.create!(model_id: ' gpt-4o-mini ' ).ask(" Hello!" )
392+ user.chats.create!(model_id: ' gpt-4.1-nano ' ).ask(" Hello!" )
393393```
394394
395395### Metadata and Tagging
407407
408408# Usage
409409chat = Chat .create!(
410- model_id: ' gpt-4o-mini ' ,
410+ model_id: ' gpt-4.1-nano ' ,
411411 metadata: {
412412 purpose: ' customer_support' ,
413413 category: ' billing' ,
0 commit comments