Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix: render image paths in markdown gracefully (#2711)

marliessophie31fb4b4b20d9
diff --git a/web/src/server/api/routers/utilities.ts b/web/src/server/api/routers/utilities.ts
index 43943fab65..bb288a3a6a 100644
--- a/web/src/server/api/routers/utilities.ts
+++ b/web/src/server/api/routers/utilities.ts
@@ -96,7 +96,7 @@ const isValidImageUrl = async (url: string): Promise<boolean> => {
export const utilsRouter = createTRPCRouter({
validateImgUrl: protectedProcedure
- .input(z.string().url().max(2048))
+ .input(z.string().max(2048))
.query(async ({ input: url }) => {
const isValidUrl = await isValidAndSecureUrl(url);
if (!isValidUrl) {