What are some node libraries for sending requests to OpenAI providers. I don’t want to…
- User
What are some node libraries for sending requests to OpenAI providers. I don’t want to use the OpenAI library
Assistant
For sending requests to OpenAI providers without using the official OpenAI library, you could use:
- axios: A popular HTTP client that works well for making API calls
- node-fetch: A lightweight fetch implementation for Node.js
- got: A human-friendly HTTP request library
- superagent: A small progressive HTTP client
- undici: A fast, minimal HTTP client
Most developers simply use axios with OpenAI's REST API endpoints directly. You just need to structure your requests according to the API documentation and include your API key in the headers.
Would you like me to show you a basic example of how to implement this with one of these libraries?
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.