Skip to content

M4 Mac compatibility #87

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

Closed

Conversation

MichaelAntonFischer
Copy link

Switch to grpcio==1.70.0 for better M4 Mac compatibility

grapeot and others added 10 commits January 19, 2025 23:18
* 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 (grapeot#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 <[email protected]>
Co-authored-by: badde57 <[email protected]>
- 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)
@grapeot
Copy link
Owner

grapeot commented Feb 19, 2025

Hello, thanks for the PR. Could you please double-check the target branch? You tried to merge to the master branch rather than the multi-agent branch. I can also take a look later today to help you resolve and merge. Your core change seems to be only one line in the requirements.txt, but it will probably be in another separate PR to get around the merge conflicts.

@grapeot
Copy link
Owner

grapeot commented Feb 20, 2025

I cleaned the PR and submitted #94. So I'm closing this one for now. Thanks a lot for the contribution!

@grapeot grapeot closed this Feb 20, 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.

3 participants