Skip to content

Refactor call method for efficiency and clarity#1

Merged
NIDNASSER-Abdelmajid merged 1 commit intomainfrom
NIDNASSER
Sep 21, 2025
Merged

Refactor call method for efficiency and clarity#1
NIDNASSER-Abdelmajid merged 1 commit intomainfrom
NIDNASSER

Conversation

@NIDNASSER-Abdelmajid
Copy link
Copy Markdown
Owner

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
@NIDNASSER-Abdelmajid NIDNASSER-Abdelmajid merged commit 6dc0379 into main Sep 21, 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.

1 participant