0.0.5 • Published 9 months ago
@martinrempel/ionos-ai-provider v0.0.5
AI SDK - IONOS AI Model Hub Provider
The IONOS AI Model Hub Provider for the AI SDK contains language model support for the IONOS AI Model Hub.
Setup
The IONOS AI Model Hub Provider is available in the @martinrempel/ionos-ai-provider module. You can install it with
npm i @martinrempel/ionos-ai-providerProvider Instance
You can import the default provider instance ionos from @martinrempel/ionos-ai-provider:
import { ionos } from '@martinrempel/ionos-ai-provider';Example
import { ionos } from '@martinrempel/ionos-ai-provider';
import { generateText } from 'ai';
const { text } = await generateText({
model: ionos('meta-llama/Meta-Llama-3.1-70B-Instruct'),
prompt: 'Write a vegetarian lasagna recipe for 4 people.',
});Documentation
Please check out the IONOS AI Model Hub and the AI SDK documentation for more information.