Compare two resources based on request rate and token usage Args: other (Resource): The other resource to compare with Returns: bool: True if this resource has a higher request rate and token usage than the other resource, False otherwise
(self, other: "Resource")
| 129 | ) |
| 130 | |
| 131 | def __gt__(self, other: "Resource") -> bool: |
| 132 | """Compare two resources based on request rate and token usage |
| 133 | Args: |
| 134 | other (Resource): The other resource to compare with |
| 135 | Returns: |
| 136 | bool: True if this resource has a higher request rate and token usage |
| 137 | than the other resource, False otherwise |
| 138 | """ |
| 139 | return not self.__lt__(other) |
| 140 | |
| 141 | def _enforce_trailing_slash(self, url: str) -> str: |
| 142 | if not url.endswith("/"): |