openai-python
openai-node
openai-python | openai-node | |
---|---|---|
71 | 32 | |
27,364 | 9,461 | |
2.0% | 2.5% | |
9.7 | 9.8 | |
1 day ago | 4 days ago | |
Python | TypeScript | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
openai-python
- Structured Output with LangChain and Llamafile
-
🚀 Building an Azure OpenAI Chatbot: Challenges, Solutions & Why JavaScript Beats Python for the Web
Check the official migration guide for updates.
-
XAI Has Acquired X
Okay, I know Tesla's extremely high P/E ratio is because it's worth is not just tied to cars, and so xAI priced at $20B more than Anthropic does not necessarily mean xAI's AI products are that much better than Anthropic's (e.g. presumably xAI's worth is tied to synergies with Tesla FSD, Optimus, and maybe even Neurolink)...but what products does xAI actually offer, other than Grok being an add-on for premium X subscriptions?
Not only does the Grok API not have access to Grok 3, which was released more than a month ago, it doesn't even have it's own SDK? [0]
> Some of Grok users might have migrated from other LLM providers. xAI API is designed to be compatible with both OpenAI and Anthropic SDKs, except certain capabilities not offered by respective SDK. If you can use either SDKs, we recommend using OpenAI SDK for better stability.
(every code example has a call for `from openai import OpenAI`)
How would using Grok be viable for any enterprise? And if Grok's API is designed to be drop-in replacement for OpenAI's, how are they not able to just use Grok to whip up their own SDK variant based on OpenAI's open-sourced SDK [1] and API spec?
[0] https://docs.x.ai/docs/guides/migration
[1] https://github.com/openai/openai-python
-
New Tools for Building Agents
If you want to get an idea for the changes, here's a giant commit where they updated ALL of the Python library examples in one go from the old chat completions to the new resources APIs: https://github.com/openai/openai-python/commit/2954945ecc185...
-
Build your next AI Tech Startup with DeepSeek
The API itself is pretty straightforward. You can use it with the OpenAI package on NPM or PIP, or make an HTTP Request. Note for this demo I will be using NodeJS. I will be working in an empty folder with an index.js file, and a package.json file.
-
Introduction to Using Generative AI Models: Create Your Own Chatbot!
To interact with the OpenAI API, you will install the openai package:
-
Exploring Job Market for Software Engineers
Python was chosen for its versatile libraries, particularly linkedin_jobs_scraper and openai. These packages streamlined the scraping and processing of job data.
- OpenAI adds new o1 models
-
LLM Fine-Tuning: Domain Embeddings with GPT-3
The essential library for this project is OpenAI, supported by two helper libraries. Install them with the poetry dependency manager a shown:
- The Stainless SDK Generator
openai-node
- DSA Study map + Revise All
-
🚀 Building an Azure OpenAI Chatbot: Challenges, Solutions & Why JavaScript Beats Python for the Web
For JavaScript, use the latest OpenAI SDK and follow their updated usage patterns.
-
Generating & Building The OpenAI SDK With Stainless & Speakeasy
We’ll use the OpenAI API, which most developers are now familiar with: the OpenAI API. This API already has an SDK, so we know it works. We’ll create two Node.js SDKs based on the OpenAI OpenAPI specification, trying to understand what it takes for each SDK generator to go from spec to alpha to 1.0.0.
-
Using DeepSeek-R1 on Azure with JavaScript
You can use OpenAI Node SDK or LangChain.js to interact with DeepSeek models.
-
Ask HN: Any existing Node.js frameworks that give basic LLMs access to tools?
Basically what's described here:
* https://github.com/openai/openai-node?tab=readme-ov-file#automated-function-calls
* https://jrmyphlmn.com/posts/sequential-function-calls
Suppose I have a model that does not natively support this.
Has anyone written/came across a library that implements such logic?
Conceptually, I would imagine that it simply boils down to another LLM interpreting user's question. The prompt for that LLM includes instructions that explain access to tools it has. That LLM then responds with a plan of execution. The plan is some JSON with instructions of what to execute. After the first cycle, the plan is re-evaluated. This repeats until LLM is happy with the response.
In practice, this feels like _a lot_ of edge cases to handle, so I am wondering if there are existing abstractions that I could use here.
For context, I am not using the native `tools` functionality provided by OpenAI SDK because it does not provide enough flexibility. It is a black box approach. I need to have more granular level control over when tools should be used/which.
-
Turn any website into a type-safe API using AI (part 1)
Now we can move on to implementing the exciting bits using the openai package:
-
Building codeshift
Can not use OpenAI SDK with Sentry Node agent: TypeError: getDefaultAgent is not a function #1010
-
npm i openai-react-native
We just published this package. It is a React Native OpenAI API client without polyfills since the official OpenAI Node SDK does not support React Native. See this issue.
-
Five ways to use Generative AI in JavaScript
Most cloud API model providers offer a JavaScript native SDK incl. OpenAI, Anthropic, and Google.
-
【TypeScript】Displaying ChatGPT-like Streaming Responses with trpc in React
There is an official library to handle OpenAI's API with TypeScript, so let's add it. https://github.com/openai/openai-node
What are some alternatives?
Awesome-LLMOps - An awesome & curated list of best LLMOps tools for developers
fern - Input OpenAPI. Output SDKs and Docs.
maelstrom - A workbench for writing toy implementations of distributed systems.
aiconfig - AIConfig is a config-based framework to build generative AI applications.
ChatGPT-AutoExpert - 🚀🧠💬 Supercharged Custom Instructions for ChatGPT (non-coding) and ChatGPT Advanced Data Analysis (coding).
liboai - A C++17 library to access the entire OpenAI API.