@ai-sdk/amazon-bedrock v0.0.34
AI SDK - Amazon Bedrock Provider
The Amazon Bedrock provider for the AI SDK contains language model support for the Amazon Bedrock converse API.
Setup
The Amazon Bedrock provider is available in the @ai-sdk/amazon-bedrock
module. You can install it with
npm i @ai-sdk/amazon-bedrock
Provider Instance
You can import the default provider instance bedrock
from @ai-sdk/amazon-bedrock
:
import { bedrock } from '@ai-sdk/amazon-bedrock';
Example
import { bedrock } from '@ai-sdk/amazon-bedrock';
import { generateText } from 'ai';
const { text } = await generateText({
model: bedrock('meta.llama3-8b-instruct-v1:0'),
prompt: 'Write a vegetarian lasagna recipe for 4 people.',
});
Documentation
Please check out the Amazon Bedrock provider documentation for more information.
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago