
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
@sumor/llm-connector
Advanced tools
A Sumor Cloud Tool.
More Documentation
This is a llm connector for multiple cloud providers.
OpenAI is a research lab consisting of the for-profit OpenAI LP and the non-profit OpenAI Inc. The company aims to ensure that artificial general intelligence benefits all of humanity.
Alibaba Qianwen is a cloud-based AI service that provides a variety of AI capabilities, including natural language processing, computer vision, and machine learning.
npm i @sumor/llm-connector --save
Require Node.JS version 18.x or above
As this package is written in ES module,
please change the following code in your package.json
file:
{
"type": "module"
}
import Model from '@sumor/llm-connector'
const model = new Model({
type: 'openAI', // or 'qianWen'
key: '123'
})
const response = await model.chat('gpt-3.5-turbo', [
{
role: 'system',
content: 'You are a helpful assistant.'
},
{
role: 'user',
content: 'Hello'
}
])
console.log(response)
// Output: { role: 'assistant', content: 'Hello, how can I help you today?' }
import Model from '@sumor/llm-connector'
const model = new Model({
type: 'openAI',
key: '123',
endpoint: 'https://api.openai.com',
chat: '/v1/chat'
})
FAQs
This is a llm connector for multiple cloud providers.
The npm package @sumor/llm-connector receives a total of 26 weekly downloads. As such, @sumor/llm-connector popularity was classified as not popular.
We found that @sumor/llm-connector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.