0.0.5 • Published 9 months ago

@martinrempel/ionos-ai-provider v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

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-provider

Provider 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.

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago