r"""Returns the maximum token limit for current model. This method retrieves the maximum token limit either from the `model_config_dict` or from the model's default token limit. Returns: int: The maximum token limit for the given model.
(self)
| 116 | |
| 117 | @property |
| 118 | def token_limit(self): |
| 119 | r"""Returns the maximum token limit for current model. |
| 120 | |
| 121 | This method retrieves the maximum token limit either from the |
| 122 | `model_config_dict` or from the model's default token limit. |
| 123 | |
| 124 | Returns: |
| 125 | int: The maximum token limit for the given model. |
| 126 | """ |
| 127 | return self.current_model.token_limit |
| 128 | |
| 129 | @property |
| 130 | def token_counter(self) -> BaseTokenCounter: |
nothing calls this directly
no outgoing calls
no test coverage detected