Smurfens
Smurfens
CCConvex Community
Created by Smurfens on 10/19/2024 in #support-community
OpenAi assistant vision - stored image url
Thanks! That worked like a charm. For future reference I will paste some of my code OpenAi assistant vision, input object: { type: "image_url", image_url: { url: https://xxx.convex.site/getImage/${imageStorageId}/img.jpg}, (check metadata for image type maybe?) } And my http action (there is probably a better way to get the path param): http.route({ pathPrefix: "/getImage/", method: "GET", handler: httpAction(async (ctx, request) => { const splitUrlArray = request.url.split("/"); const blob = await ctx.storage.get(splitUrlArray[4] as Id<"_storage">); if (blob === null) { return new Response("Image not found", { status: 404, }); } return new Response(blob); }), });
7 replies
CCConvex Community
Created by Smurfens on 10/19/2024 in #support-community
OpenAi assistant vision - stored image url
I tried both, both the query param directily on the image url and setting up the http action, as the linked suggested, it works fine in the browser, with the param. Seems like openai sanitizes the params, so I am left with the same error const editedImageUrl = https://xxx.convex.site/getImage?storageId=<id>&filename=hi.jpeg; if (imageUrl) { content.push({ type: "image_url", image_url: { url: editedImageUrl }, // image_url: { url: ${imageUrl}?name=image.jpg }, }); }
7 replies
CCConvex Community
Created by winsoroaks on 11/28/2023 in #support-community
Uncaught Failed to analyze email/emailClient.js: Unexpected token '<'
Thanks for getting back to me and the link, will check it out asap. Love the product btw!
37 replies
CCConvex Community
Created by winsoroaks on 11/28/2023 in #support-community
Uncaught Failed to analyze email/emailClient.js: Unexpected token '<'
Hi! I am running in to the same problem, as mentioned above, trying to use Resend. Any update on the matter?
37 replies