How to Handle Text + Image Generation Together in same model Using AI SDK? #7192
Unanswered
viraj-7span
asked this question in
Help
Replies: 1 comment
-
|
@viraj-7span did you manage to do it yourself ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
I'm currently using
generateTextwithgpt-4ovia the@ai-sdk/openaipackage to stream or generate chat responses.Now I want to also generate images (via DALL·E) based on user prompts like “generate image of a black dog”.
My questions:
generateTextorgpt-4omodel, or do I need to call something separately?I saw there's a
generateImage()function — should I trigger it manually when the user input looks like an image prompt? Or is there a cleaner way to do this using tool calling / function calling?Any examples or patterns you recommend would be appreciated!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions