8000 feat: Pass chat index to editDisplay by enzi221 · Pull Request #917 · kwaroran/RisuAI · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
< 8000 div class="gh-header-show ">

feat: Pass chat index to editDisplay #917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

enzi221
Copy link
Contributor
@enzi221 enzi221 commented Jun 10, 2025

PR Checklist

  • Have you checked if it works normally in all models? Ignore this if it doesn't use models.
  • Have you checked if it works normally in all web, local, and node hosted versions? If it doesn't, have you blocked it in those versions?
  • Have you added type definitions?

Description

This PR provides current editing chat's index to editDisplay callback as its third agrument. This can be used to optimize Lua code greatly by short-circuiting if index is too small compared to getChatLength().

To avoid future breaking changes, I've made it as meta object so that any additional properties can be freely added.

@enzi221 enzi221 force-pushed the pass-chat-index-to-editdisplay branch from 031f093 to 0c084b6 Compare June 12, 2025 16:43
@enzi221 enzi221 force-pushed the pass-chat-index-to-editdisplay branch from 0c084b6 to 9e17c81 Compare June 16, 2025 13:45
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.

1 participant
0