module RubyLLM::Providers::Gemini::Capabilities
def supports_caching?(model_id)
-
(Boolean)
- true if the model supports caching
Parameters:
-
model_id
(String
) -- the model identifier
def supports_caching?(model_id) if model_id.match?(/flash-lite|gemini-2\.5-pro-exp-03-25|aqa|imagen|text-embedding|embedding-001/) return false end model_id.match?(/gemini|pro|flash/) end