mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-16 06:27:58 +00:00
feat(UI): Adding linter and prettier for UI (#3156)
This commit is contained in:
parent
61582f327c
commit
e69acbafbf
73 changed files with 1452 additions and 1226 deletions
|
@ -2,7 +2,7 @@ import { ChatMessage, ChatMessageContentPart } from "@/lib/types";
|
|||
import { formatToolCallToString } from "@/lib/format-tool-call";
|
||||
|
||||
export function extractTextFromContentPart(
|
||||
content: string | ChatMessageContentPart[] | null | undefined,
|
||||
content: string | ChatMessageContentPart[] | null | undefined
|
||||
): string {
|
||||
if (content === null || content === undefined) {
|
||||
return "";
|
||||
|
@ -37,7 +37,7 @@ export function extractTextFromContentPart(
|
|||
}
|
||||
|
||||
export function extractDisplayableText(
|
||||
message: ChatMessage | undefined | null,
|
||||
message: ChatMessage | undefined | null
|
||||
): string {
|
||||
if (!message) {
|
||||
return "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue