FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

refactor: optimize file handling in call method by NIDNASSER-Abdelmajid · Pull Request #144 · Alibaba-NLP/DeepResearch · GitHub

refactor: optimize file handling in call method - #144

Open
NIDNASSER-Abdelmajid wants to merge 2 commits into
Alibaba-NLP:mainfrom
NIDNASSER-Abdelmajid:main
Open

NIDNASSER-Abdelmajid wants to merge 2 commits into
Alibaba-NLP:mainfrom
NIDNASSER-Abdelmajid:main

Conversation

Copy link
Copy Markdown

refactor: optimize file handling in call method

  • Use list comprehensions to separate mp3 and non-mp3 files
  • Avoid reusing params dict for clarity
  • Replace len(x) checks with if x for readability
  • Limit file_parser response directly to 30,000 entries
  • Simplify token count calculation
  • Improve overall readability while keeping logic intact

refactor: optimize file handling in call method

- Use list comprehensions to separate mp3 and non-mp3 files
- Avoid reusing params dict for clarity
- Replace len(x) checks with if x for readability
- Limit file_parser response directly to 30,000 entries
- Simplify token count calculation
- Improve overall readability while keeping logic intact
Refactor call method for efficiency and clarity

Copy link
Copy Markdown

👍

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL