File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ You can also analyze video files or URLs with vision-capable models. RubyLLM wil
154154
155155``` ruby
156156# Ask about a local video file
157- chat = RubyLLM .chat(model: ' gemini-2.0 -flash' )
157+ chat = RubyLLM .chat(model: ' gemini-2.5 -flash' )
158158response = chat.ask " What happens in this video?" , with: " path/to/demo.mp4"
159159puts response.content
160160
Original file line number Diff line number Diff line change @@ -95,14 +95,14 @@ RubyLLM gives you one beautiful API for all of them. Same interface whether you'
9595
9696``` ruby
9797# Just ask questions
98- chat = RubyLLM .chat( model: " gemini-2.0-flash " )
98+ chat = RubyLLM .chat
9999chat.ask " What's the best way to learn Ruby?"
100100```
101101
102102``` ruby
103103# Analyze any file type
104104chat.ask " What's in this image?" , with: " ruby_conf.jpg"
105- chat.ask " What's happening in this video?" , with: " presentation .mp4"
105+ chat.ask " What's happening in this video?" , with: " video .mp4"
106106chat.ask " Describe this meeting" , with: " meeting.wav"
107107chat.ask " Summarize this document" , with: " contract.pdf"
108108chat.ask " Explain this code" , with: " app.rb"
You can’t perform that action at this time.
0 commit comments