← All release notes

June 5, 2023 · AI Agents, RPA Framework

RPA.OpenAI got an Azure support (1.2.0)

Microsoft offers Open AI service from Azure, and now it's easy to use them with Robocorp, too!

This is an appealing alternative, especially for enterprise customers. Using Azure OpenAI, customers get the security capabilities of Microsoft Azure while running the same models as OpenAI. Azure OpenAI offers private networking, regional availability, and responsible AI content filtering. Please note that you must request and set up the Azure Open AI Service yourself before using it from your bots.

The new capabilities are available in the rpaframework-openai package from version 1.2.0 onwards, and by including the RPA.OpenAI library.

Usage is straightforward and follows the same pattern as previously with the Open AI API. Simply authenticate first:

Authorize To Azure Openai ... api_key=${secrets}[api_key] ... api_base=${secrets}[api_base]

Then off you go with the prompts, just like before.

${response} @{conversation}= Chat Completion Create ... user_content=What is the biggest mammal? ... conversation=${conversation} ... model=${secrets}[deployment_name]

Have fun LLMing!

Robot Framework code editor authenticating to Azure OpenAI and creating a chat completion, with a mascot holding an Azure flag