openai-node
openai-python
openai-node | openai-python | |
---|---|---|
22 | 61 | |
6,961 | 19,999 | |
2.5% | 3.5% | |
9.5 | 9.6 | |
2 days ago | 7 days ago | |
TypeScript | Python | |
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-node
-
Website Optimization Using Strapi, Astro.js and OpenAI
Okay, now we've confirmed the API endpoint is working, let's connect it to OpenAI first, install the OpenAI package, navigate to the route directory, and run the command below in our terminal
-
JSON {} With OpenAI π€β¨
For my setup, I am using the node version of the openai sdk.
-
The Stainless SDK Generator
We try to keep it to a minimum, especially in JS (though we have some nice improvements coming soon when we deprecate node-fetch in favor of built-in fetch). The package sizes aren't tiny because we include thorough types and sourcemaps, but the bundle sizes are fairly tidy.
Here's an example of a typical RESTful endpoint (Lithic's `client.cards.create()`:
https://github.com/lithic-com/lithic-node/blob/36d4a6a70597e...
Here are some example repos produced by Stainless:
1. https://github.com/openai/openai-node
-
OpenAI: Streaming is now available in the Assistants API
Have you seen/tried the `.runTools()` helper?
Docs: https://github.com/openai/openai-node?tab=readme-ov-file#aut...
Example: https://github.com/openai/openai-node/blob/bb4bce30ff1bfb06d...
(if what you're fundamentally trying to do is really just get JSON out, then I can see how json_mode is still easier).
-
OpenAI has Text to Speech Support now!
And so, I impulsively upgraded to the latest version of openai (I guess not anymore) without the fear of getting cut by cutting edge π and got it working for some random text
-
AI for Web Devs: Faster Responses with HTTP Streaming
UPDATE 2023/11/15: I used fetch and custom streams because at the time of writing, the openai module on NPM did not properly support streaming responses. That issue has been fixed, and I think a better solution would be to use that module and pipe their data through a TransformStream to send to the client. That version is not reflected here.
-
AI for Web Devs: Your First API Request to OpenAI
You may notice the JavaScript package available on NPM called openai. We will not be using this, as it doesnβt quite support some things weβll want to do, that fetch can.
-
Building and deploying AI agents with E2B
openai - For using the GPT-3.5-turbo model to answer the questions
-
Aiconfig β source control format for gen AI prompts, models and settings
We have a bit of context about this in the readme: https://github.com/lastmile-ai/aiconfig#what-problem-it-solv.... The main issue with keeping it in code is that it tangles application code with prompts and model-specific logic.
That makes it hard to evaluate the genAI parts of the application, and also iterating on the prompts is not as straightforward as opening up a playground.
Having the config be the source of truth let's you connect it to your application code (and still source controlled), lets you evaluate the config as the AI artifact, and also lets you open the config in a playground to edit and iterate.
For example, compare how much simpler openai function calling becomes with storing the stuff as a config: https://github.com/lastmile-ai/aiconfig/blob/main/cookbooks/... vs using vanilla openai directly (https://github.com/openai/openai-node/blob/v4/examples/funct...)
-
Build a Chatbot With OpenAI, Vercel AI and Xata
In your preferred serverless environment, make sure you install the OpenAI API Library and Vercel AI library to get started.
openai-python
- The Stainless SDK Generator
-
GPT-4 Turbo with Vision is a step backwards for coding
The ongoing model anchoring/grounding issue likely affects all GPT-4 checkpoints/variants, but is most prominent with the latest "gpt-4-turbo-2024-04-09" variant due to its most recent cutoff date, might imply deeper issues with the current model architecture, or at least how it's been updated:
https://github.com/openai/openai-python/issues/1310
See also the original thread on OpenAI's developer forums (linked on the GitHub issue) with confirmations from others.
A test code snippet is included in the GitHub issue to A/B test the problem yourself with your own questions if need be.
-
Show HN: GritQL, a Rust CLI for rewriting source code
- Iterate on large codebases quickly: we use Rust for maximum performance
GritQL has already been used on thousands of repositories for complex migrations[1] but we're excited to collaborate more with the open source community.
[1] Ex. https://github.com/openai/openai-python/discussions/742
-
Integrating AI chatbotπ© into your application in 2024 π§π»ββοΈπ is how easy? π€
Explore OpenAI and learn how to easily integrate it into your existing application with the OpenAI Python module.
-
Need Help with OpenAI Upgrade: Seeking Guidance on 'openai.Completion' Deprecation Error
You tried to access openai.Completion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API. You can run `openai migrate` to automatically upgrade your codebase to use the 1.0.0 interface. Alternatively, you can pin your installation to the old version, e.g. `pip install openai==0.28` A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742
-
Anthropic announces Claude 2.1 β 200k context, less refusals
Relatedly, I checked and OpenAI deleted all references to their ChatML spec from their GitHub repo.
This is what it said in an earlier commit: https://github.com/openai/openai-python/blob/2942bf4bb635b1e...
-
Web scraping experiment with AI (Parsing HTML with GPT-4)
Make sure to install the OpenAI library first. Since I'm using Python, I need
-
OpenAI: "We are dealing with periodic outages due to an abnormal traffic pattern reflective of a DDoS attack"
Source: https://github.com/openai/openai-python/discussions/742
- GitHub - openai/openai-python: The official Python library for the OpenAI API
- OpenAI Python v1 Released
What are some alternatives?
liboai - A C++17 library to access the entire OpenAI API.
whisper.cpp - Port of OpenAI's Whisper model in C/C++
fern - πΏ Stripe-level SDKs and Docs for your API
langchain - β‘ Building applications with LLMs through composability β‘ [Moved to: https://github.com/langchain-ai/langchain]
vrite - Open-source developer content platform
langchain - π¦π Build context-aware reasoning applications
tiptap - The headless rich text editor framework for web artisans.
ChatGPT-AutoExpert - ππ§ π¬ Supercharged Custom Instructions for ChatGPT (non-coding) and ChatGPT Advanced Data Analysis (coding).
ai - Build AI-powered applications with React, Svelte, Vue, and Solid [Moved to: https://github.com/vercel/ai]
sharegpt - Easily share permanent links to ChatGPT conversations with your friends
stepci - Automated API Testing and Quality Assurance
AutoGPT - AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.