Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@nlux/openai-react
Advanced tools
The OpenAI adapters for nlux React, the React JS 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.nlkit.com/nlux/reference/adapters/open-ai
For more information on how to create custom adapters for your own LLM or API, please visit:
https://docs.nlkit.com/nlux/learn/adapters/custom-adapters/create-custom-adapter
This package @nlux/openai-react
is meant for use with the React JS version of NLUX.
If you're looking for the vanilla JS version, please check
the @nlux/openai
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 favorite 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: docs.nlkit.com/nlux
FAQs
The OpenAI adapters for nlux React, the React JS library for building conversational AI interfaces.
The npm package @nlux/openai-react receives a total of 2,933 weekly downloads. As such, @nlux/openai-react popularity was classified as popular.
We found that @nlux/openai-react 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.