Enhance batch processing with progress tracking and update AIAgent for OpenRouter detection
- Integrated tqdm for progress tracking in batch processing, replacing map with imap_unordered for improved performance. - Added base_url attribute in AIAgent to facilitate OpenRouter detection.
This commit is contained in:
parent
b66c093316
commit
6e3dbb8d8b
2 changed files with 10 additions and 2 deletions
|
|
@ -102,6 +102,7 @@ class AIAgent:
|
|||
self.ephemeral_system_prompt = ephemeral_system_prompt
|
||||
self.log_prefix_chars = log_prefix_chars
|
||||
self.log_prefix = f"{log_prefix} " if log_prefix else ""
|
||||
self.base_url = base_url or "" # Store for OpenRouter detection
|
||||
|
||||
# Store OpenRouter provider preferences
|
||||
self.providers_allowed = providers_allowed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue