Skip to content
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

[Bug]: πŸ–‡ AgentOps: Error: cannot access local variable 'formatted_cost' where it is not associated with a value #440

Closed
2 of 3 tasks
knivore opened this issue Oct 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@knivore
Copy link
Contributor

knivore commented Oct 14, 2024

Contact Details

[email protected]

πŸ“¦ Package Version

0.3.13

🎞️ Framework Version

CrewAI 0.67.1

πŸ”Ž Describe the Bug

File "/Users/kehchinleong/Documents/CDWP/project-mata/venv/lib/python3.11/site-packages/agentops/session.py", line 154, in end_session
f"{colored('Cost:', attrs=['bold'])} ${formatted_cost} "
^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'formatted_cost' where it is not associated with a value

🀝 Contribution

  • Yes, I'd be happy to submit a pull request with these changes.
  • I need some guidance on how to contribute.
  • I'd prefer the AgentOps team to handle this update.
@knivore knivore added the bug Something isn't working label Oct 14, 2024
@knivore
Copy link
Contributor Author

knivore commented Oct 14, 2024

Created a PR here. #441

Hope to have some guidance to see if its on the right track and whether what i can further contribute

@areibman
Copy link
Contributor

Great fix, thanks @knivore!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants