Skip to content

Commit

Permalink
fix: use new character name spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
snowyu committed Aug 11, 2024
1 parent 9b6a4f8 commit d89966c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/run-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export async function runScript(filename: string, options: IRunScriptOptions) {
runtime.$ready(true)

// const spinner = cliSpinners.dots
const aiName = runtime.prompt?.character?.name || 'ai'
const aiName = runtime.character?.name || runtime.name || 'ai'

const latestMessages = await runtime.getLatestMessages()
if (latestMessages && latestMessages.length > 0) {
Expand Down

0 comments on commit d89966c

Please sign in to comment.