Add "image_url" to Langfuse Prompt types. #3074
grobruegge
started this conversation in
Ideas
Replies: 1 comment
-
Hi @grobruegge, thanks so much for providing this feedback. Agree, the DX here should be improved. We'll look into this in the next few weeks to provide a simpler solution. For now, your implementation is the way to go. We'll keep you posted here when we make the corresponding changes 👍 |
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
-
Describe the feature or potential improvement
Prompts within Langfuse currently support the types "system", "user" and "assistant". While this is sufficient within the context of pure language generation, modern "language" models such as "GPT-4o" are multi-model and also support images. Within the Python SDK, images can be passed to the model using
type=image_url
within messages as role user.Langfuse does not natively support image urls within their prompt management, which requires some boilerplate code. For example, adding an image url in Python will look as follows:
This adds quiet a lot of code. It would be nice if one could simple add the image_url during the compile step which would then look as follows (only a suggestion):
Thank you so much for this framework and I am exited to see this in future versions of Langfuse!
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions