Skip to content

Commit c01f3cf

Browse files
committed
Fixes API request display
1 parent c3cf35f commit c01f3cf

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

webview-ui/src/components/chat/ChatRow.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,9 @@ export const ChatRowContent = ({
310310
) : cost !== null && cost !== undefined ? (
311311
<span style={{ color: normalColor }}>{t("chat:apiRequest.title")}</span>
312312
) : apiRequestFailedMessage ? (
313-
<span style={{ color: errorColor, fontWeight: "bold" }}>{t("chat:apiRequest.failed")}</span>
313+
<span style={{ color: errorColor }}>{t("chat:apiRequest.failed")}</span>
314314
) : (
315-
<span style={{ color: normalColor, fontWeight: "bold" }}>{t("chat:apiRequest.streaming")}</span>
315+
<span style={{ color: normalColor }}>{t("chat:apiRequest.streaming")}</span>
316316
),
317317
]
318318
case "followup":
@@ -1044,10 +1044,7 @@ export const ChatRowContent = ({
10441044
case "api_req_started":
10451045
// Determine if the API request is in progress
10461046
const isApiRequestInProgress =
1047-
apiReqCancelReason === null &&
1048-
apiReqCancelReason === undefined &&
1049-
(cost === null || cost === undefined) &&
1050-
!apiRequestFailedMessage
1047+
apiReqCancelReason === undefined && apiRequestFailedMessage === undefined
10511048

10521049
return (
10531050
<>

0 commit comments

Comments
 (0)