removing pdb and function name
This commit is contained in:
parent
55496cd9de
commit
7e8928f88b
2 changed files with 14 additions and 13 deletions
|
|
@ -660,11 +660,10 @@ class Vertex:
|
||||||
if len(result) == 2:
|
if len(result) == 2:
|
||||||
self._built_object, self.artifacts = result
|
self._built_object, self.artifacts = result
|
||||||
elif len(result) == 3:
|
elif len(result) == 3:
|
||||||
import pdb; pdb.set_trace()
|
|
||||||
self._custom_component, self._built_object, self.artifacts = result
|
self._custom_component, self._built_object, self.artifacts = result
|
||||||
self.artifacts_raw = self.artifacts.get("raw", None)
|
self.artifacts_raw = self.artifacts.get("raw", None)
|
||||||
self.artifacts_type = self.artifacts.get("type", None) or ArtifactType.UNKNOWN.value
|
self.artifacts_type = self.artifacts.get("type", None) or ArtifactType.UNKNOWN.value
|
||||||
self.logs = build_log(self)
|
self.logs = build_logs(self)
|
||||||
else:
|
else:
|
||||||
self._built_object = result
|
self._built_object = result
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -116,19 +116,19 @@ export default function ChatMessage({
|
||||||
<div
|
<div
|
||||||
className={classNames(
|
className={classNames(
|
||||||
"form-modal-chat-position",
|
"form-modal-chat-position",
|
||||||
chat.isSend ? "" : " "
|
chat.isSend ? "" : " ",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className={classNames(
|
className={classNames(
|
||||||
"mr-3 mt-1 flex w-24 flex-col items-center gap-1 overflow-hidden px-3 pb-3"
|
"mr-3 mt-1 flex w-24 flex-col items-center gap-1 overflow-hidden px-3 pb-3",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div className="flex flex-col items-center gap-1">
|
<div className="flex flex-col items-center gap-1">
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"relative flex h-8 w-8 items-center justify-center overflow-hidden rounded-md p-5 text-2xl",
|
"relative flex h-8 w-8 items-center justify-center overflow-hidden rounded-md p-5 text-2xl",
|
||||||
!chat.isSend ? "bg-chat-bot-icon" : "bg-chat-user-icon"
|
!chat.isSend ? "bg-chat-bot-icon" : "bg-chat-user-icon",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
|
@ -211,12 +211,12 @@ export default function ChatMessage({
|
||||||
|
|
||||||
children[0] = (children[0] as string).replace(
|
children[0] = (children[0] as string).replace(
|
||||||
"`▍`",
|
"`▍`",
|
||||||
"▍"
|
"▍",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const match = /language-(\w+)/.exec(
|
const match = /language-(\w+)/.exec(
|
||||||
className || ""
|
className || "",
|
||||||
);
|
);
|
||||||
|
|
||||||
return !inline ? (
|
return !inline ? (
|
||||||
|
|
@ -231,7 +231,7 @@ export default function ChatMessage({
|
||||||
language: (match && match[1]) || "",
|
language: (match && match[1]) || "",
|
||||||
code: String(children).replace(
|
code: String(children).replace(
|
||||||
/\n$/,
|
/\n$/,
|
||||||
""
|
"",
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
|
|
@ -249,7 +249,7 @@ export default function ChatMessage({
|
||||||
{chatMessage}
|
{chatMessage}
|
||||||
</Markdown>
|
</Markdown>
|
||||||
),
|
),
|
||||||
[chat.message, chatMessage]
|
[chat.message, chatMessage],
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -292,7 +292,7 @@ export default function ChatMessage({
|
||||||
parts.push(
|
parts.push(
|
||||||
<span className="chat-message-highlight">
|
<span className="chat-message-highlight">
|
||||||
{chat.message[match[1]]}
|
{chat.message[match[1]]}
|
||||||
</span>
|
</span>,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -312,7 +312,9 @@ export default function ChatMessage({
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<span
|
<span
|
||||||
className={`prose word-break-break-word dark:prose-invert ${
|
className={`prose word-break-break-word dark:prose-invert ${
|
||||||
chatMessage === EMPTY_INPUT_SEND_MESSAGE ? "text-gray-400" : "text-primary"
|
chatMessage === EMPTY_INPUT_SEND_MESSAGE
|
||||||
|
? "text-gray-400"
|
||||||
|
: "text-primary"
|
||||||
}`}
|
}`}
|
||||||
data-testid={
|
data-testid={
|
||||||
"chat-message-" + chat.sender_name + "-" + chatMessage
|
"chat-message-" + chat.sender_name + "-" + chatMessage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue