(self)
| 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 | |
| 111 | class LLMFunctionCall(BaseModel): |
nothing calls this directly
no test coverage detected