Skip to content

Commit

Permalink
fix threads
Browse files Browse the repository at this point in the history
  • Loading branch information
vincelwt committed Jul 15, 2024
1 parent 476a8d0 commit be2d21d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/components/blocks/RunChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { mutate } from "swr"
import AppUserAvatar from "./AppUserAvatar"
import Feedbacks from "./Feedbacks"

const OUTPUT_ROLES = ["assistant", "ai", "tool"]
const OUTPUT_ROLES = ["assistant", "ai", "system", "tool"]
const INPUT_ROLES = ["user"]

function parseMessageFromRun(run) {
Expand Down Expand Up @@ -192,7 +192,7 @@ export function ChatReplay({ run, mutateLogs }) {
run.user?.id && `/external-users/${run.user?.id}`,
)

const sorted = runs?.sort((a, b) => {
const sorted = runs?.data?.sort((a, b) => {
return new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()
})

Expand Down

0 comments on commit be2d21d

Please sign in to comment.