MCPcopy
hub / github.com/openai/openai-python / __init__

Method __init__

src/openai/_exceptions.py:174–180  ·  view source on GitHub ↗
(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
183class ContentFilterFinishReasonError(OpenAIError):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected