Integrating Custom HttpClient with OpenAI's Fetch Interface
I'm using a third-party library (OpenAI) that allows you to give it a
fetch instance, so I've copied @effect/platform's way of passing in a custom fetch instance (https://github.com/PREreview/coar-notify/blob/e19890b70d3eaf927aa2985f6b186cb435e7bbfd/src/OpenAi.ts#L19-L25). I have customised my HttpClient instance (https://github.com/PREreview/coar-notify/blob/e19890b70d3eaf927aa2985f6b186cb435e7bbfd/src/index.ts#L22-L32), but those changes aren't used here. While I could customise my fetch instance to do these changes, I'd rather avoid doing so. Would it be helpful to have a way to wrap HttpClient with a fetch interface, or at least provide the parts needed (converting to/from the fetch request and response types)?