Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@nlux/openai
Advanced tools
The OpenAI adapters for nlux, the javascript library for building conversational AI interfaces.
This package enables the integration between NLUX and OpenAI's API.
More specifically ― the package include the adapter to connect to text generation models exposed
via OpenAI Text Generation APIs.
Please note: This adapter connects to the OpenAI API directly from the browser and requires an API key to be used from a web page. It's not recommended to use it in production environments, and it should only be used for development and testing purposes.
If you would like to use OpenAI's API in a production environment, you should use the OpenAI API from a server (such us a simple Node.js proxy server that you build) and then connect to it from your web page. You can use NLUX with any API or LLM by creating a custom adapter for it.
For more information on how to use this package, please visit:
https://docs.nlux.ai/api/adapters/open-ai
For more information on how to create custom adapters for your own LLM or API, please visit:
https://docs.nlux.ai/learn/adapters/custom-adapters/create-custom-adapter
This package @nlux/openai
is meant for use with the vanilla JS version of NLUX.
If you're looking for the React JS version, please check
the @nlux/openai-react
package.
NLUX (for Natural Language User Experience) is an open-source Javascript library that makes it simple to integrate powerful large language models (LLMs) like ChatGPT into your web app or website. With just a few lines of code, you can add conversational AI capabilities and interact with your favourite LLM.
<AiChat />
for UI and useChatAdapter
hook for easy integration.ChatGPT
/ LangChain
🦜 LangServe / HuggingFace
🤗 Inference.For developer documentation, examples, and API reference ― you can visit: nlux.dev
FAQs
The OpenAI adapters for nlux, the javascript library for building conversational AI interfaces.
The npm package @nlux/openai receives a total of 1,478 weekly downloads. As such, @nlux/openai popularity was classified as popular.
We found that @nlux/openai demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.