def to_fastapi_response()

in aidial_adapter_openai/utils/adapter_exception.py [0:0]


    def to_fastapi_response(self) -> FastAPIResponse:
        return FastAPIResponse(
            status_code=self.status_code,
            content=self.content,
            headers=self.headers,
        )