inflection-ai-sdk-provider
Advanced tools
Comparing version 0.0.1 to 1.0.0
{ | ||
"name": "inflection-ai-sdk-provider", | ||
"version": "0.0.1", | ||
"version": "1.0.0", | ||
"license": "Apache-2.0", | ||
@@ -53,3 +53,8 @@ "sideEffects": false, | ||
"keywords": [ | ||
"ai" | ||
"ai", | ||
"inflection", | ||
"inflection ai", | ||
"inflection ai sdk", | ||
"inflection ai sdk provider", | ||
"inflection ai vercel sdk provider" | ||
], | ||
@@ -56,0 +61,0 @@ "scripts": { |
@@ -1,8 +0,8 @@ | ||
# AI SDK - Inflection AI Provider | ||
# Unofficial Community Provider for Vercel AI SDK - Inflection AI | ||
The **[Inflection AI provider](https://github.com/Umbrage-Studios/inflection-ai-sdk-provider)** for the [AI SDK](https://sdk.vercel.ai/docs) contains language model support for the [Inflection AI API](https://developers.inflection.ai/). | ||
The **[unofficial Inflection AI provider](https://www.npmjs.com/package/inflection-ai-sdk-provider)** for the [AI SDK](https://sdk.vercel.ai/docs) contains language model support for the [Inflection AI API](https://developers.inflection.ai/). | ||
## Setup | ||
The Inflection AI provider is available in the `inflection-ai-sdk-provider` module. You can install it with | ||
The Inflection AI provider is available in the [`inflection-ai-sdk-provider`](https://www.npmjs.com/package/inflection-ai-sdk-provider) module on npm. You can install it with | ||
@@ -15,6 +15,6 @@ ```bash | ||
You can import the default provider instance `inflection` from `@ai-sdk/inflection-ai`: | ||
You can import the default provider instance `inflection` from `inflection-ai-sdk-provider`: | ||
```ts | ||
import { inflection } from 'inflection-ai-sdk-provider'; | ||
import { inflection } from "inflection-ai-sdk-provider"; | ||
``` | ||
@@ -25,15 +25,31 @@ | ||
```ts | ||
import { inflection } from 'inflection-ai-sdk-provider'; | ||
import { generateText } from 'ai'; | ||
import { inflection } from "inflection-ai-sdk-provider"; | ||
import { generateText } from "ai"; | ||
const { text } = await generateText({ | ||
model: inflection('inflection_3_with_tools'), | ||
prompt: 'how can I make quick chicken pho?', | ||
model: inflection("inflection_3_with_tools"), | ||
prompt: "how can I make quick chicken pho?", | ||
}); | ||
``` | ||
## Models | ||
The following models are supported: | ||
- `inflection_3_pi` - "the model powering our Pi experience, including a backstory, emotional intelligence, productivity, and safety. It excels in scenarios such as customer support chatbots." | ||
- `inflection_3_productivity`- "the model optimized for following instructions. It is better for tasks requiring JSON output or precise adherence to provided guidelines." | ||
- `inflection_3_with_tools` - This model seems to be in preview and it lacks an official description as of the writing of this README in 1.0.0. | ||
| Model | Text Generation | Streaming | Image Input | Object Generation | Tool Usage | Tool Streaming | | ||
| --------------------------- | --------------- | --------- | ----------- | ----------------- | ---------- | -------------- | | ||
| `inflection_3_pi` | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | | ||
| `inflection_3_productivity` | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | | ||
| `inflection_3_with_tools` | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | | ||
There is limited API support for features other than text generation and streaming text at this time. Should that change, the table above will be updated and support will be added to this unofficial provider. | ||
## Documentation | ||
Please check out the **[Inflection AI provider](https://github.com/Umbrage-Studios/inflection-ai-sdk-provider)** for more information. | ||
Please check out the **[Inflection AI provider](https://www.npmjs.com/package/inflection-ai-sdk-provider)** for more information. | ||
Please check out Inflection AI's [API Documentation](https://developers.inflection.ai/docs/api-reference) for more information. |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
81967
0
54