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

Sweep: Make a counter system to AI calls in upsonic_on_prem/utils/ai/ai.py (✓ Sandbox Passed) #68

Closed

Conversation

onuratakan
Copy link
Member

Description

This pull request introduces a counter system to track the number of times AI models are called in the upsonic_on_prem/utils/ai/ai.py file.

Summary

  • Added a model_call_counter dictionary to track the number of times each AI model is called
  • Updated the completion method to increment the counter and log the call count for each model

Fixes #67.


🎉 Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To get Sweep to edit this pull request, you can:

  • Comment below, and Sweep can edit the entire PR
  • Comment on a file, Sweep will only modify the commented file
  • Edit the original issue to get Sweep to recreate the PR from scratch

@onuratakan onuratakan self-assigned this Mar 7, 2024
@onuratakan
Copy link
Member Author

Rollback Files For Sweep

  • Rollback changes to upsonic_on_prem/utils/ai/ai.py

This is an automated message generated by Sweep AI.

@onuratakan
Copy link
Member Author

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.
  • Apply: Add docstrings to all functions and file headers.

This is an automated message generated by Sweep AI.

Copy link

github-actions bot commented Mar 7, 2024

Qodana Community for Python

1 new problem were found

Inspection name Severity Problems
Unbound local variables 🔶 Warning 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@onuratakan
Copy link
Member Author

Create storage_3 and save this counts to there.

@onuratakan
Copy link
Member Author

onuratakan commented Mar 8, 2024

🚀 Wrote Changes

Done.

This is an automated message generated by Sweep AI.

@onuratakan
Copy link
Member Author

Create a new storage with strorage_4 name in upsonic_on_prem/utils/db/init.py. And store this count in this storage

@onuratakan
Copy link
Member Author

onuratakan commented Mar 8, 2024

🚀 Wrote Changes

Done.

This is an automated message generated by Sweep AI.

@onuratakan onuratakan closed this Mar 27, 2024
@onuratakan onuratakan deleted the sweep/make_a_counter_system_to_ai_calls_in_ups branch July 15, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sweep: Make a counter system to AI calls in upsonic_on_prem/utils/ai/ai.py
1 participant