We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The example can be found in the OpenAI Provider:
https://sdk.vercel.ai/providers/ai-sdk-providers/openai
It would be great if you could add a provider like Dify
https://docs.dify.ai/guides/application-publishing/based-on-frontend-templates
to make it usable with Vercel AI SDK.
import { createDify } from "@ai-sdk/dify"; import { streamObject } from 'ai'; import { z } from 'zod'; const dify = createDify({ response_mode: "streaming", inputs: { name: "John Doe", }, }); const { partialObjectStream } = streamObject({ model: dify, schema: z.object({ recipe: z.object({ name: z.string(), ingredients: z.array(z.string()), steps: z.array(z.string()), }), }), prompt: 'Generate a lasagna recipe.', }); for await (const partialObject of partialObjectStream) { console.clear(); console.log(partialObject); }
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Feature Description
The example can be found in the OpenAI Provider:
https://sdk.vercel.ai/providers/ai-sdk-providers/openai
It would be great if you could add a provider like Dify
https://docs.dify.ai/guides/application-publishing/based-on-frontend-templates
to make it usable with Vercel AI SDK.
Use Cases
Additional context
No response
The text was updated successfully, but these errors were encountered: