Skip to content

Commit

Permalink
type cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Feb 12, 2025
1 parent 531df24 commit beab6b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 306 deletions.
14 changes: 10 additions & 4 deletions packages/cli/src/commands/character.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,16 @@ async function collectCharacterData(
const examples = response.value
.split('\\n')
.map(line => line.trim())
.filter(Boolean);
formData.messageExamples = examples.length > 0
? examples
: [`{{user1}}: hey how are you?\n${formData.name}`];
.filter(Boolean)
.map(line => ({
user: line.split(':')[0].trim(),
content: {
text: line.split(':').slice(1).join(':').trim()
}
}));
formData.messageExamples = examples.length > 0
? [examples]
: [];
break;
}

Expand Down
302 changes: 0 additions & 302 deletions packages/plugin-solana/src/types/token.ts

This file was deleted.

0 comments on commit beab6b3

Please sign in to comment.