Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
genkitx-anthropicai
Advanced tools
genkitx-anthropicai
is a community plugin for using Anthropic AI and all its supported models with Firebase GenKit.
Install the plugin in your project with your favorite package manager:
npm install genkitx-anthropicai
yarn add genkitx-anthropicai
The simplest way to call the text generation model is by using the helper function generate
:
// Basic usage of an LLM
const response = await generate({
model: claude3Haiku,
prompt: 'Tell me a joke.',
});
console.log(await response.text());
Using the same interface, you can prompt a multimodal model:
const response = await generate({
model: claude3Haiku,
prompt: [
{ text: 'What animal is in the photo?' },
{ media: { url: imageUrl} },
],
config:{
// control of the level of visual detail when processing image embeddings
// Low detail level also decreases the token usage
visualDetailLevel: 'low',
}
});
console.log(await response.text());
Want to contribute to the project? That's awesome! Head over to our Contribution Guidelines.
[!NOTE]
This repository depends on Google's Firebase Genkit. For issues and questions related to GenKit, please refer to instructions available in GenKit's repository.
Reach out by opening a discussion on Github Discussions.
This plugin is proudly maintained by the team at The Fire Company. 🔥
This project is licensed under the Apache 2.0 License.
FAQs
Firebase Genkit AI framework plugin for Anthropic AI APIs.
The npm package genkitx-anthropicai receives a total of 0 weekly downloads. As such, genkitx-anthropicai popularity was classified as not popular.
We found that genkitx-anthropicai demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.