Azure OpenAI
Using Azure OpenAI with Flowstack
Azure OpenAI can be integrated with Flowstack using REST API, Python, and Node.js. Below are the implementation details for each method.
1. Using REST API
To make a request to Azure OpenAI using the REST API, use the following Curl command. Replace YOUR_AZURE_KEY
, YOUR_AZURE_MODEL
, and YOUR_AZURE_DOMAIN
with your Azure key, model name, and domain, respectively.
2. Using Python
For integrating Azure OpenAI with Python, use the following script. Be sure to replace YOUR_AZURE_KEY
, YOUR_AZURE_DOMAIN
, and YOUR_FLOWSTACK_KEY
with your Azure API key, domain, and Flowstack key.
3. Using Node.js
For Node.js integration with Azure OpenAI, follow the example below. Replace YOUR_AZURE_API_KEY
, YOUR_AZURE_DOMAIN
, YOUR_AZURE_MODEL
, and YOUR_FLOWSTACK_KEY
with the respective credentials.
Streaming Support
Please note that Flowstack’s Azure AI integration supports streaming responses.