Files
wehub-resource-sync e768098d0e
tools_continuous_delivery / Private PyPI non-main branch release (push) Has been skipped
tools_continuous_delivery / Private PyPI main branch release (push) Failing after 2m42s
Publish Promptflow Doc / Build (push) Has been cancelled
Publish Promptflow Doc / Deploy (push) Has been cancelled
Flake8 Lint / flake8 (push) Has been cancelled
Spell check CI / Spell_Check (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:39:52 +08:00

1.4 KiB

Model Configuration

Tailoring your AI applications to use specific models with desired parameters is now easier than ever with the Promptflow SDK's new Model Configuration feature. Whether you're engaging with chatbots, generating text, or building complex AI workflows, our unified configuration approach allows you to set up and switch between models from OpenAI, AzureOpenAI seamlessly.

Model Configuration at a Glance

We've designed a set of classes that cater to various scenarios, each with a straightforward setup process. Here's how you can configure models for different services:

AzureOpenAIModelConfiguration

The AzureOpenAIModelConfiguration class lets you connect to Azure's AI services with minimal hassle. Just provide your endpoint, deployment, and optional authentication details, and you're good to go. Reference here for it's defintion.

OpenAIModelConfiguration

The OpenAIModelConfiguration class is tailored for direct OpenAI integration. Specify your API key, the model you want to use, and any additional parameters. Reference here for it's definition.