mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-21 21:24:46 +08:00
feat: enable images in content
This commit is contained in:
@@ -128,6 +128,7 @@ You have access to skills that provide optimized workflows for specific tasks. E
|
|||||||
- Progressive Loading: Load resources incrementally as referenced in skills
|
- Progressive Loading: Load resources incrementally as referenced in skills
|
||||||
- Output Files: Final deliverables must be in `/mnt/user-data/outputs`
|
- Output Files: Final deliverables must be in `/mnt/user-data/outputs`
|
||||||
- Clarity: Be direct and helpful, avoid unnecessary meta-commentary
|
- Clarity: Be direct and helpful, avoid unnecessary meta-commentary
|
||||||
|
- Including Images and Mermaid: Images and Mermaid diagrams are always welcomed in the Markdown format, and you're encouraged to use `\n\n` or "```mermaid" to display images in response or Markdown files
|
||||||
- Multi-task: Better utilize parallel tool calling to call multiple tools at one time for better performance
|
- Multi-task: Better utilize parallel tool calling to call multiple tools at one time for better performance
|
||||||
- Language Consistency: Keep using the same language as user's
|
- Language Consistency: Keep using the same language as user's
|
||||||
- Always Respond: Your thinking is internal. You MUST always provide a visible response to the user after thinking.
|
- Always Respond: Your thinking is internal. You MUST always provide a visible response to the user after thinking.
|
||||||
|
|||||||
@@ -233,7 +233,6 @@ function ToolCall({
|
|||||||
}[];
|
}[];
|
||||||
}
|
}
|
||||||
)?.results;
|
)?.results;
|
||||||
console.info("image_search", results);
|
|
||||||
return (
|
return (
|
||||||
<ChainOfThoughtStep key={id} label={label} icon={SearchIcon}>
|
<ChainOfThoughtStep key={id} label={label} icon={SearchIcon}>
|
||||||
{Array.isArray(results) && (
|
{Array.isArray(results) && (
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ function MessageContent_({
|
|||||||
if (typeof src !== "string") {
|
if (typeof src !== "string") {
|
||||||
return (
|
return (
|
||||||
<img
|
<img
|
||||||
className="max-w-full overflow-hidden rounded-lg"
|
className="max-w-[90%] overflow-hidden rounded-lg"
|
||||||
src={src}
|
src={src}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
/>
|
/>
|
||||||
@@ -100,7 +100,7 @@ function MessageContent_({
|
|||||||
return (
|
return (
|
||||||
<a href={url} target="_blank" rel="noopener noreferrer">
|
<a href={url} target="_blank" rel="noopener noreferrer">
|
||||||
<img
|
<img
|
||||||
className="max-w-full overflow-hidden rounded-lg"
|
className="max-w-[90%] overflow-hidden rounded-lg"
|
||||||
src={url}
|
src={url}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user