Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeldking committed Oct 9, 2024
1 parent 9b5b200 commit 79276cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/pages/playground/playgroundUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { generateInstanceId, PlaygroundInstance } from "@phoenix/store";
import {
ChatMessageRole,
chatMessageRoles,
generateMessageId,
} from "@phoenix/store/playgroundStore";
import { safelyParseJSON } from "@phoenix/utils/jsonUtils";

Expand Down Expand Up @@ -63,6 +64,7 @@ export function transformSpanAttributesToPlaygroundInstance(
__type: "chat",
messages: data.llm.input_messages.map(({ message }) => {
return {
id: generateMessageId(),
role: getChatRole(message.role),
content: message.content,
};
Expand Down

0 comments on commit 79276cf

Please sign in to comment.