Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
This is a JavaScript library for the Dialoqbase API. It is a simple wrapper around the API, providing a more convenient way to interact with it.
First of all, you need to install the library:
npm install dialoqbase
Then you're ready to use it:
import { createClient } from 'dialoqbase';
const dialoqbase = createClient(
'http://localhost:3000',
'your-api-key'
)
const {data, error} = await dialoqbase.bot.create({
name: "Test Bot 2",
model: "claude-3-opus-20240229",
embedding: "nomic-ai/nomic-embed-text-v1.5"
})
const formData = new FormData();
formData.append("file", pdfFile, "test.pdf")
formData.append("file", mp3File, "test.mp3")
const {data, error} = await dialoqbase.bot.source.addFile(botId, formData)
const {data, error} = await dialoqbase.bot.source.add(botId, [
{
content: "https://n4ze3m.com",
type: "website",
},
{
content: "https://www.youtube.com/watch?v=BLmsVvcUxmY",
type: "youtube",
options: {
youtube_mode: "transcript"
}
},
{
content: "Hello World!",
type: "text",
},
])
const chat = await dialoqbase.bot.chat(botId, {
message: "Hello tell me a joke",
stream: true,
history: []
})
for await (const message of chat) {
console.log(message.bot.text)
}
const response = await dialoqbase.bot.chat(botId, {
message: "Hello tell me a joke",
stream: false,
history: []
})
console.log(response.bot.text)
const {data, error} = await dialoqbase.bot.delete(botId)
MIT
FAQs
A client library for Dialoqbase
The npm package dialoqbase receives a total of 0 weekly downloads. As such, dialoqbase popularity was classified as not popular.
We found that dialoqbase 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.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.