Skip to content

Commit

Permalink
fix(prompts): switch bloom to tutor
Browse files Browse the repository at this point in the history
  • Loading branch information
VVoruganti committed Dec 16, 2024
1 parent f977425 commit 64ce43e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions www/app/api/chat/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ export async function thinkCall({
honchoResponse =
content.match(/<honcho>(.*?)<\/honcho>/s)?.[1]?.trim() ?? 'None';
bloomResponse =
content.match(/<bloom>(.*?)<\/bloom>/s)?.[1]?.trim() ?? 'None';
content.match(/<tutor>(.*?)<\/tutor>/s)?.[1]?.trim() ?? 'None';
}

const messages = [
...promptMessages,
{
role: 'user',
content: `<honcho-response>${honchoResponse}</honcho-response>\n<bloom>${bloomResponse}</bloom>\n${userInput}`,
content: `<honcho-response>${honchoResponse}</honcho-response>\n<tutor>${bloomResponse}</tutor>\n${userInput}`,
},
];

Expand Down
2 changes: 1 addition & 1 deletion www/app/api/chat/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async function saveHistory({
);

// Save thought metamessage for user message
const thoughtMetamessage = `<honcho-response>${honchoContent}</honcho-response>\n<bloom>${aiResponse}</bloom>\n${userInput}`;
const thoughtMetamessage = `<honcho-response>${honchoContent}</honcho-response>\n<tutor>${aiResponse}</tutor>\n${userInput}`;
await honcho.apps.users.sessions.metamessages.create(
appId,
userId,
Expand Down

0 comments on commit 64ce43e

Please sign in to comment.