The AI Toolkit to build AI pieces tailored for specific use cases that work with many AI providers using the AI SDK
generateText
function to call an LLM in your actions.
aiProps
to create consistent AI-related properties:
aiProps
helper includes an advancedOptions
property that provides provider-specific configuration options. These options are dynamically generated based on the selected provider and model.
To add advanced options for your new provider, update the advancedOptions
property in packages/pieces/community/common/src/lib/ai/index.ts
:
SUPPORTED_AI_PROVIDERS
array in packages/shared/src/lib/ai/supported-ai-providers.ts
:
createAIProvider
function in packages/shared/src/lib/ai/ai-sdk.ts
:
aiProps
to select your provider and modelsaiProps
dropdowns and can be used with generateText
and other AI SDK functions throughout Activepieces.