Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
@getmetal/metal-sdk
Advanced tools
npm install @getmetal/metal-sdk
# or
yarn add @getmetal/metal-sdk
import { Metal } from '@getmetal/metal-sdk'
const metal = new Metal('pk_123', 'ci_123', 'idx_123')
import { Metal } from '@getmetal/metal-sdk'
const metal = new Metal('api-key', 'client-id', 'index-id')
// Index Text
await metal.index({
id: '666', // Id is optional <> if not provided, Metal will generate one
text: 'Ozzy Osbourne',
metadata: { band: 'Black Sabbath' },
})
// Index Image from URL
await metal.index({ imageUrl: 'https://image.png' })
// Index Image from Base64
await metal.index({ imageBase64: '<base-64-str>' })
import { Metal } from '@getmetal/metal-sdk'
const metal = new Metal('api-key', 'client-id', 'index-id')
// Search Text
await metal.search({
text: 'Who is the lead singer of Black Sabbath?',
limit: 1,
})
await metal.search({ imageUrl: 'search-by-image.png' })
// Filtered Search
await metal.search({
text: 'Heavy Metal',
filters: [{ field: 'band', value: 'Black Sabbath' }],
})
import { Motorhead } from '@getmetal/metal-sdk'
const motor = new Motorhead({ apiKey: 'pk_123', clientId: 'ci_123' })
const memoryPayload = {
messages: [
{ role: 'Human', content: 'Who is the best vocalist of all time?' },
{ role: 'AI', content: 'Ozzy!' },
],
context: 'User ask what can he eat in Colombia. The AI responds arepas are really nice',
}
await motorhead.addMemory('session-id', memoryPayload)
await motorhead.getMemory('session-id')
View the full documentation on https://docs.getmetal.io/sdks/node
FAQs
Metal SDK
We found that @getmetal/metal-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.