Create an AI chat provider
The pw ai providers create command creates a new AI chat provider.
For custom providers, --endpoint and --api-key are required. For azure providers, --region, --model, --group, and --network are required.
pw ai providers create [flags]
# Create a custom provider
pw ai providers create --name my-provider --csp custom --endpoint https://api.example.com --api-key sk-xxx
# Create an Azure provider
pw ai providers create --name my-azure --csp azure --region eastus --model gpt-4 --group my-group --network my-network
--api-key string API key (required for custom)
--csp string Cloud service provider (required, e.g. azure, custom)
--endpoint string API endpoint (required for custom)
--group string Resource group
-h, --help help for create
--model string Model name (required for azure)
--name string Provider name (required)
--network string Network
--region string Region (required for azure)
--context string The context to use. Overrides PW_CONTEXT environment variable and current context from config.
--platform-host string The Parallel Works ACTIVATE platform host to use. Will override any other platform host settings.
-v, --verbose Enable verbose logging