Skip to content

Commit

Permalink
Merge pull request #1923 from JoeyKhd/hide-secrets
Browse files Browse the repository at this point in the history
API route update
  • Loading branch information
shakkernerd authored Jan 6, 2025
2 parents ef01c2e + 955bda8 commit 7b37d50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/client-direct/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ export function createApiRouter(
return;
}

let character = agent?.character;
if (character?.settings?.secrets) {
delete character.settings.secrets;
}

res.json({
id: agent.agentId,
character: agent.character,
Expand Down

0 comments on commit 7b37d50

Please sign in to comment.