diff --git a/src/components/screens-component/chat-screen/components/bubbles/card-bubble.tsx b/src/components/screens-component/chat-screen/components/bubbles/card-bubble.tsx index 3f3359d..4bb8286 100644 --- a/src/components/screens-component/chat-screen/components/bubbles/card-bubble.tsx +++ b/src/components/screens-component/chat-screen/components/bubbles/card-bubble.tsx @@ -13,7 +13,7 @@ import rehypeRaw from "rehype-raw"; import type { Components } from "react-markdown"; const markdownComponents: Components = { - p: ({ children }) =>
{children}
, + p: ({ children }) =>{children}
, a: ({ href, children }) => ( {children} diff --git a/src/lib/api-service.ts b/src/lib/api-service.ts index a03e63c..745ee81 100644 --- a/src/lib/api-service.ts +++ b/src/lib/api-service.ts @@ -381,9 +381,9 @@ class ApiService { const uploadResult = await this.uploadImage(imageFile); const imageId = uploadResult.image_id; - // Step 2: Send only the image UUID. + // Step 2: Send the image UUID along with a request message. // The backend resolves this ID to a localhost image URL internally. - const query = imageId; + const query = `please do the pest analysis for this image ${imageId}`; return this.sendUserQuery(query, session, sourceLang, targetLang, onStreamData, onResponseStarted); }