module RubyLLM::Providers::Gemini::Capabilities
def supports_functions?(model_id)
-
(Boolean)
- true if the model supports function calling
Parameters:
-
model_id
(String
) -- the model identifier
def supports_functions?(model_id) return false if model_id.match?(/text-embedding|embedding-001|aqa|flash-lite|imagen|gemini-2\.0-flash-lite/) model_id.match?(/gemini|pro|flash/) end