Closed
Conversation
* Improve the planner prompt. * [Cursor] Add token tracking and cost estimation Key changes: - Add TokenTracker module for tracking API token usage and costs - Implement per-day session management for usage tracking - Add support for OpenAI and Claude cost calculations - Update LLM API modules to track token usage - Fix and enhance unit tests across all modules - Add aiohttp for web scraping The token tracking system provides: - Token usage tracking for all LLM API calls - Cost estimation based on provider-specific pricing - Daily session management for usage statistics - Command-line interface for viewing usage summaries * [Cursor] Update token tracker and fix tests * [Cursor] Add multi-agent branch to CI workflow * [Cursor] Remove main branch from CI workflow * [Cursor] Fix plan_exec_llm tests to properly mock OpenAI client
* Update README.md (#34) * [Cursor] Improve test handling of LLM API configurations - Add test_utils.py with smart detection of unconfigured/example API keys - Add graceful error handling for API failures in live tests - Consolidate test assertions into helper method - Update README to document verbose test output - Clean up duplicate code in test files This improves the testing experience by: 1. Skipping tests when API keys are missing or using example values 2. Converting API errors to skipped tests rather than failures 3. Providing clear messages about why tests were skipped 4. Making test output more informative with -v flag --------- Co-authored-by: Ya Ge <grapeot@gmail.com> Co-authored-by: badde57 <badde57@protonmail.com>
- Fixed token_tracker import in llm_api.py to use relative imports - Added __init__.py to make tools a proper Python package - Updated aiohttp version in requirements.txt to match installed version All unit tests are now passing (44 passed, 2 skipped)
Owner
|
Hello, thanks for the PR. Could you please double-check the target branch? You tried to merge to the |
Owner
|
I cleaned the PR and submitted #94. So I'm closing this one for now. Thanks a lot for the contribution! |
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switch to grpcio==1.70.0 for better M4 Mac compatibility