Description
Hello,
My connections/azure_open_ai.yaml file:
`
$schema: https://azuremlschemas.azureedge.net/promptflow/latest/AzureOpenAIConnection.schema.json
name: azure_openai
type: azure_open_ai
api_type: "azure"
api_key: ${env:AZURE_OPENAI_API_KEY}
api_base: ${env:AZURE_OPENAI_ENDPOINT}
api_version: ${env:AZURE_OPENAI_VERSION}
`
I create the connection locally:
pf connection create -f connections/azure_openai.yaml --set api_base=<base> api_version=<version> api_key=<key>
This works locally.
I build the dist folder for docker deployment: pf flow build --source . --output dist --format docker
But the dist/connections/azure_openai.yaml file is built like this:
`
$schema:
https://azuremlschemas.azureedge.net/promptflow/latest/AzureOpenAIConnection.schema.json
type: azure_open_ai
name: azure_openai
module: promptflow.connections
api_base: https://oai-general-dev-sweden.openai.azure.com
api_key: ${env:AZURE_OPENAI_API_KEY}
api_type: azure
api_version: '2024-10-21'
auth_mode: key
`
Why does it not keep the env variables? How can I change this?