module RubyLLM::Providers::Bedrock::Capabilities

def context_window_for(model_id)

Returns:
  • (Integer) - the context window size in tokens

Parameters:
  • model_id (String) -- the model identifier
def context_window_for(model_id)
  case model_id
  when /anthropic\.claude-2/ then 100_000
  else 200_000
  end
end