prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Increase max limit for the chains endpoint
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `src/chains/views.py`
  Content:
  ```
  1 from rest_framework import filters
  2 from rest_framework.generics import ListAPIView, RetrieveAPIView
  3 from rest_framework.pagination import LimitOffsetPagination
  4 
  5 from .models import Chain
  6 from .serializers import ChainSerializer
  7 
  8 
  9 class ChainsListView(ListAPIView):
  10     serializer_class = ChainSerializer
  11     pagination_class = LimitOffsetPagination
  12     pagination_class.max_limit = 10
  13     pagination_class.default_limit = 10
  14     queryset = Chain.objects.all()
  15     filter_backends = [filters.OrderingFilter]
  16     ordering_fields = ["relevance", "name"]
  17     ordering = [
  18         "relevance",
  19         "name",
  20     ]
  21 
  22 
  23 class ChainsDetailView(RetrieveAPIView):
  24     serializer_class = ChainSerializer
  25     queryset = Chain.objects.all()
  26
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/src/chains/views.py b/src/chains/views.py
  --- a/src/chains/views.py
  +++ b/src/chains/views.py
  @@ -9,7 +9,7 @@
   class ChainsListView(ListAPIView):
       serializer_class = ChainSerializer
       pagination_class = LimitOffsetPagination
  -    pagination_class.max_limit = 10
  +    pagination_class.max_limit = 100
       pagination_class.default_limit = 10
       queryset = Chain.objects.all()
       filter_backends = [filters.OrderingFilter]
  
verification_info: {"golden_diff": "diff --git a/src/chains/views.py b/src/chains/views.py\n--- a/src/chains/views.py\n+++ b/src/chains/views.py\n@@ -9,7 +9,7 @@\n class ChainsListView(ListAPIView):\n     serializer_class = ChainSerializer\n     pagination_class = LimitOffsetPagination\n-    pagination_class.max_limit = 10\n+    pagination_class.max_limit = 100\n     pagination_class.default_limit = 10\n     queryset = Chain.objects.all()\n     filter_backends = [filters.OrderingFilter]\n", "issue": "Increase max limit for the chains endpoint\n\n", "before_files": [{"content": "from rest_framework import filters\nfrom rest_framework.generics import ListAPIView, RetrieveAPIView\nfrom rest_framework.pagination import LimitOffsetPagination\n\nfrom .models import Chain\nfrom .serializers import ChainSerializer\n\n\nclass ChainsListView(ListAPIView):\n    serializer_class = ChainSerializer\n    pagination_class = LimitOffsetPagination\n    pagination_class.max_limit = 10\n    pagination_class.default_limit = 10\n    queryset = Chain.objects.all()\n    filter_backends = [filters.OrderingFilter]\n    ordering_fields = [\"relevance\", \"name\"]\n    ordering = [\n        \"relevance\",\n        \"name\",\n    ]\n\n\nclass ChainsDetailView(RetrieveAPIView):\n    serializer_class = ChainSerializer\n    queryset = Chain.objects.all()\n", "path": "src/chains/views.py"}], "after_files": [{"content": "from rest_framework import filters\nfrom rest_framework.generics import ListAPIView, RetrieveAPIView\nfrom rest_framework.pagination import LimitOffsetPagination\n\nfrom .models import Chain\nfrom .serializers import ChainSerializer\n\n\nclass ChainsListView(ListAPIView):\n    serializer_class = ChainSerializer\n    pagination_class = LimitOffsetPagination\n    pagination_class.max_limit = 100\n    pagination_class.default_limit = 10\n    queryset = Chain.objects.all()\n    filter_backends = [filters.OrderingFilter]\n    ordering_fields = [\"relevance\", \"name\"]\n    ordering = [\n        \"relevance\",\n        \"name\",\n    ]\n\n\nclass ChainsDetailView(RetrieveAPIView):\n    serializer_class = ChainSerializer\n    queryset = Chain.objects.all()\n", "path": "src/chains/views.py"}]}