Method
__init__
(self, *, completion: ChatCompletion)
Source from the content-addressed store, hash-verified
| 172 | """ |
| 173 | |
| 174 | def __init__(self, *, completion: ChatCompletion) -> None: |
| 175 | msg = "Could not parse response content as the length limit was reached" |
| 176 | if completion.usage: |
| 177 | msg += f" - {completion.usage}" |
| 178 | |
| 179 | super().__init__(msg) |
| 180 | self.completion = completion |
| 181 | |
| 182 | |
| 183 | class ContentFilterFinishReasonError(OpenAIError): |
Callers
nothing calls this directly
Tested by
no test coverage detected