Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import rehypeRaw from "rehype-raw";
import type { Components } from "react-markdown";

const markdownComponents: Components = {
p: ({ children }) => <p className="m-0 leading-relaxed">{children}</p>,
p: ({ children }) => <p className="m-0 leading-relaxed whitespace-pre-line">{children}</p>,
a: ({ href, children }) => (
<a href={href} target="_blank" rel="noopener noreferrer" className="text-primary underline">
{children}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/api-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Loading