MCPcopy
hub / github.com/langroid/langroid / model_max_output_tokens

Method model_max_output_tokens

langroid/language_models/base.py:100–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98
99 @property
100 def model_max_output_tokens(self) -> int:
101 if self.max_output_tokens:
102 return self.max_output_tokens
103 # Build fallback names by progressively stripping provider prefixes
104 # (e.g. "minimax/MiniMax-M2.7" → ["MiniMax-M2.7"]) so that the lookup
105 # succeeds even before OpenAIGPT.__init__ strips the prefix.
106 parts = self.chat_model.split("/")
107 fallbacks = ["/".join(parts[i:]) for i in range(1, len(parts))]
108 return get_model_info(self.chat_model, fallbacks).max_output_tokens
109
110
111class LLMFunctionCall(BaseModel):

Callers

nothing calls this directly

Calls 2

get_model_infoFunction · 0.90
splitMethod · 0.45

Tested by

no test coverage detected