Skip to content

Conversation

@stevenksmith
Copy link
Contributor

supersedes #751
addresses part of #739

Copy link
Contributor

@khanonnie khanonnie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i like this more than having an entirely new option for this behavior, since not including char/user names in messages at all seemed to make outputs worse so i don't think you'd ever want to turn it off.

const isUser = line.startsWith(handle)
const isBot = !isUser && !isSystem

const name = isBot ? replyAs.name : isUser ? handle : undefined
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is handle by this point accounting for impersonated characters? I'd assume so

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, this was breaking past impersonations (registering them as the main character in assistant message), and example messages (incorrect splitting). This is fixed in c4eefd5

@stevenksmith stevenksmith marked this pull request as draft December 13, 2023 07:15
@stevenksmith stevenksmith marked this pull request as ready for review December 13, 2023 07:30
@stevenksmith
Copy link
Contributor Author

Sorry for flipflopping but I now think #751 is better.

@sceuick
Copy link
Member

sceuick commented Dec 29, 2023

Sorry for flipflopping but I now think #751 is better.

Yes, I think this will have bad side effects.

@sceuick sceuick closed this Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants