MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / token_limit

Method token_limit

camel/models/model_manager.py:118–127  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected