Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@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.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-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 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 React, the React JS library for building conversational AI interfaces.
The npm package @nlux/openai-react receives a total of 2,017 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.