mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-11 19:56:03 +00:00
UI enhancements
rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
This commit is contained in:
parent
5ef6ccf90e
commit
9964287698
7 changed files with 2688 additions and 1584 deletions
|
|
@ -13,6 +13,10 @@ import {
|
|||
} from "@/components/ui/collapsible";
|
||||
import { FilePreview } from "@/components/ui/file-preview";
|
||||
import { MarkdownRenderer } from "@/components/chat-playground/markdown-renderer";
|
||||
import {
|
||||
ThinkingBlock,
|
||||
type ThinkingPart,
|
||||
} from "@/components/chat-playground/thinking-block";
|
||||
|
||||
const chatBubbleVariants = cva(
|
||||
"group/message relative break-words rounded-lg p-3 text-sm sm:max-w-[70%]",
|
||||
|
|
@ -117,6 +121,7 @@ interface StepStartPart {
|
|||
type MessagePart =
|
||||
| TextPart
|
||||
| ReasoningPart
|
||||
| ThinkingPart
|
||||
| ToolInvocationPart
|
||||
| SourcePart
|
||||
| FilePart
|
||||
|
|
@ -235,6 +240,8 @@ export const ChatMessage: React.FC<ChatMessageProps> = ({
|
|||
);
|
||||
} else if (part.type === "reasoning") {
|
||||
return <ReasoningBlock key={`reasoning-${index}`} part={part} />;
|
||||
} else if (part.type === "thinking") {
|
||||
return <ThinkingBlock key={`thinking-${index}`} part={part} />;
|
||||
} else if (part.type === "tool-invocation") {
|
||||
return (
|
||||
<ToolCall
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue