All seems to be working

This commit is contained in:
James Ketr 2025-05-16 10:46:49 -07:00
parent 58dadb76f0
commit 6d8d89604a
2 changed files with 4 additions and 2 deletions

View File

@ -117,6 +117,8 @@ const MessageMeta = (props: MessageMetaProps) => {
} = props.metadata || {};
const message: any = props.messageProps.message;
console.log(tools, rag);
let llm_submission: string = "<|system|>\n"
llm_submission += message.system_prompt + "\n\n"
llm_submission += message.context_prompt
@ -159,7 +161,7 @@ const MessageMeta = (props: MessageMetaProps) => {
</>
}
{
tools !== undefined && tools.tool_calls && tools.tool_calls.length !== 0 &&
tools && tools.tool_calls && tools.tool_calls.length !== 0 &&
<Accordion sx={{ boxSizing: "border-box" }}>
<AccordionSummary expandIcon={<ExpandMoreIcon />}>
<Box sx={{ fontSize: "0.8rem" }}>

View File

@ -70,7 +70,7 @@ const ResumeBuilderPage: React.FC<BackstoryPageProps> = (props: BackstoryPagePro
messages[0].expandable = true;
}
if (-1 !== messages.findIndex(m => m.status === 'done')) {
if (-1 !== messages.findIndex(m => m.status === 'done' || (m.actions && m.actions.includes("resume_generated")))) {
setHasResume(true);
setHasFacts(true);
}