θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content

fixed drupal connector #3893

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

Conversation

rexjohannes
Copy link
Contributor

#3875 (comment)

Pull Request Type

  • ✨ feat
  • πŸ› fix
  • ♻️ refactor
  • πŸ’„ style
  • πŸ”¨ chore
  • πŸ“ docs

Relevant Issues

resolves #3875

What is in this change?

This pull request simplifies the handling of token count estimation in the DrupalWiki class by removing unnecessary conditional logic and directly computing the token count where it is used.

Code simplification:

  • Removed the tokenCount variable and its associated conditional logic for calculating token count, simplifying the code by directly calling tokenizeString(page.processedBody) in the token_count_estimate property. (collector/utils/extensions/DrupalWiki/DrupalWiki/index.js, [1] [2]

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

@timothycarambat timothycarambat merged commit dc80d3e into Mintplex-Labs:master May 27, 2025
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
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.

[BUG]: Drupal Wiki Connector broken in Desktop and latest Docker (master tag)
2 participants