added explination in cost_integration

This commit is contained in:
SwiftyOS
2025-07-09 15:33:08 +02:00
parent 38c167ff87
commit a2f3c322dc
2 changed files with 5 additions and 2 deletions

View File

@@ -43,6 +43,9 @@ def register_provider_costs_for_block(block_class: Type[Block]) -> None:
return
# Look for credentials fields
# The cost system works of filtering on credentials fields,
# without credentials fields, we can not apply costs
# TODO: Improve cost system to allow for costs witout a provider
credentials_fields = input_schema.get_credentials_fields()
if not credentials_fields:
logger.debug(f"Block {block_class.__name__} has no credentials fields")

View File

@@ -23,7 +23,7 @@ class OAuthConfig(BaseModel):
class Provider:
"""A configured provider that blocks can use.
A Provider represents a service or platform that blocks can integrate with, like Linear, OpenAI, etc.
It contains configuration for:
- Authentication (OAuth, API keys)
@@ -32,7 +32,7 @@ class Provider:
- Webhook handling
- Error handling
- API client factory
Blocks use Provider instances to handle authentication, make API calls, and manage service-specific logic.
"""