fix(agent): align tools + preserve indentation
This commit is contained in:
1 parent
196eb86e38
commit
7c89ce93b5
12 files changed
+88
-46
No files matched your search
+2
-2
@@ -27,8 +27,8 @@ export function splitMediaFromOutput(raw: string): {
|
||||
mediaUrls?: string[];
|
||||
mediaUrl?: string; // legacy first item for backward compatibility
|
||||
} {
|
||||
const trimmedRaw = raw.trim();
|
||||
if (!trimmedRaw) return { text: "" };
|
||||
const trimmedRaw = raw.trimEnd();
|
||||
if (!trimmedRaw.trim()) return { text: "" };
|
||||
|
||||
const media: string[] = [];
|
||||
let foundMediaToken = false;
|
||||
|
||||
Reference in new issue
Block a user