-
Notifications
You must be signed in to change notification settings - Fork 44.7k
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
tweak(backend): Update all block costs #8639
Conversation
This commit refactors the block cost configuration file and adds support for new blocks. The changes include: - Importing the `AIMusicGeneratorBlock`, `JinaEmbeddingBlock`, and `UnrealTextToSpeechBlock` classes - Updating the `BLOCK_COSTS` dictionary to include costs for the new blocks These changes enable the usage of the newly introduced blocks.
This PR targets the Automatically setting the base branch to |
✅ Deploy Preview for auto-gpt-docs canceled.
|
unreal_credentials = APIKeyCredentials(# | ||
id="66f20754-1b81-48e4-91d0-f4f0dd82145f", | ||
provider="unreal", | ||
api_key=SecretStr(settings.secrets.unreal_speech_api_key), | ||
title="Use Credits for Unreal", | ||
expires_at=None, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be added to the list of hidden credentials in the frontend profile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Description
This PR updates block cost configuration.
Key Changes:
Credentials Store:
unreal_credentials
to manage Unreal Speech API keys.DEFAULT_CREDENTIALS
andget_all_creds
methods to include Unreal Speech credentials if available.unreal_speech_api_key
inSecrets
to handle Unreal Speech API keys.Block Cost Configuration:
UnrealTextToSpeechBlock
with a cost of 5 credits, referencing Unreal Speech API credentials.IdeogramModelBlock
andAIShortformVideoCreatorBlock
.AIMusicGeneratorBlock
,JinaEmbeddingBlock
, andAIListGeneratorBlock
with specific cost configurations.These changes enable us to provide Unreal Speech API support and expand the platform's capabilities with new blocks, while adjusting costs for existing blocks.