AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
feat(block): Enable cloud Apollo integration cost (#10199)
Zamil Majdya2d54c5fb4fa
diff --git a/autogpt_platform/backend/backend/data/block_cost_config.py b/autogpt_platform/backend/backend/data/block_cost_config.pyindex 864ed0e989..730512e4ea 100644--- a/autogpt_platform/backend/backend/data/block_cost_config.py+++ b/autogpt_platform/backend/backend/data/block_cost_config.py@@ -2,6 +2,8 @@ from typing import Typefrom backend.blocks.ai_music_generator import AIMusicGeneratorBlockfrom backend.blocks.ai_shortform_video_block import AIShortformVideoCreatorBlock+from backend.blocks.apollo.organization import SearchOrganizationsBlock+from backend.blocks.apollo.people import SearchPeopleBlockfrom backend.blocks.flux_kontext import AIImageEditorBlock, FluxKontextModelNamefrom backend.blocks.ideogram import IdeogramModelBlockfrom backend.blocks.jina.embeddings import JinaEmbeddingBlock@@ -24,6 +26,7 @@ from backend.data.cost import BlockCost, BlockCostTypefrom backend.integrations.credentials_store import (aiml_api_credentials,anthropic_credentials,+ apollo_credentials,did_credentials,groq_credentials,ideogram_credentials,@@ -345,4 +348,28 @@ BLOCK_COSTS: dict[Type[Block], list[BlockCost]] = {)],SmartDecisionMakerBlock: LLM_COST,+ SearchOrganizationsBlock: [+ BlockCost(+ cost_amount=2,+ cost_filter={+ "credentials": {+ "id": apollo_credentials.id,+ "provider": apollo_credentials.provider,+ "type": apollo_credentials.type,+ }+ },+ )+ ],+ SearchPeopleBlock: [+ BlockCost(+ cost_amount=2,+ cost_filter={+ "credentials": {+ "id": apollo_credentials.id,+ "provider": apollo_credentials.provider,+ "type": apollo_credentials.type,+ }+ },+ )+ ],}