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

feat(backend): Add credit for Jina/Search & LLM blocks #8361

Merged
merged 4 commits into from
Oct 17, 2024

Conversation

majdyz
Copy link
Contributor

@majdyz majdyz commented Oct 17, 2024

Background

Block that use 3rd-party service can introduces cost, the use should be able to manage its usage.

Changes 🏗️

Add run quota/credit on SearchTheWebBlock & ExtractWebsiteContentBlock.

Testing 🔍

Note

Only for the new autogpt platform, currently in autogpt_platform/

  • Create from scratch and execute an agent with at least 3 blocks
  • Import an agent from file upload, and confirm it executes correctly
  • Upload agent to marketplace
  • Import an agent from marketplace and confirm it executes correctly
  • Edit an agent from monitor, and confirm it executes correctly

@majdyz majdyz requested a review from Torantulino October 17, 2024 06:01
@majdyz majdyz requested a review from a team as a code owner October 17, 2024 06:01
@majdyz majdyz requested review from kcze and removed request for a team October 17, 2024 06:01
@github-actions github-actions bot added the platform/backend AutoGPT Platform - Back end label Oct 17, 2024
Copy link

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Cost Validation
Verify if the cost amounts for SearchTheWebBlock and ExtractWebsiteContentBlock are appropriate and align with the actual usage of these services.

Import Optimization
Consider grouping related imports together for better code organization. The new import for search blocks could be moved closer to other block imports.

@majdyz majdyz requested review from ntindle and Swiftyos and removed request for kcze October 17, 2024 06:01
aarushik93
aarushik93 previously approved these changes Oct 17, 2024
@majdyz majdyz changed the title feat(backend): Add credit for Jina/Search blocks feat(backend): Add credit for Jina/Search & LLM blocks Oct 17, 2024
@github-actions github-actions bot added size/m and removed size/s labels Oct 17, 2024
@majdyz majdyz requested a review from aarushik93 October 17, 2024 09:46
@majdyz majdyz merged commit 2c0286e into dev Oct 17, 2024
7 checks passed
@majdyz majdyz deleted the zamilmajdy/update-block-cost branch October 17, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants