You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**azure_endpoint** (<code>str | None</code>) – The endpoint of the deployed model, for example `"https://example-resource.azure.openai.com/"`.
279
-
-**api_version** (<code>str | None</code>) – The version of the API to use. Defaults to 2024-12-01-preview.
278
+
-**azure_endpoint** (<code>str | Secret | None</code>) – The endpoint of the deployed model, for example `"https://example-resource.azure.openai.com/"`.
279
+
Can also be a [Secret](https://docs.haystack.deepset.ai/docs/secret-management), for example
280
+
`Secret.from_env_var("AZURE_OPENAI_ENDPOINT")`, to resolve the value from an environment variable at
281
+
runtime. This is useful to switch endpoints between environments (e.g. dev and prod) without changing the
282
+
serialized pipeline.
283
+
-**api_version** (<code>str | Secret | None</code>) – The version of the API to use. Defaults to 2024-12-01-preview.
284
+
Can also be a [Secret](https://docs.haystack.deepset.ai/docs/secret-management), for example
285
+
`Secret.from_env_var("AZURE_OPENAI_API_VERSION")`, to resolve the value from an environment variable at
286
+
runtime.
280
287
-**azure_deployment** (<code>str | None</code>) – The deployment of the model, usually the model name.
281
288
-**api_key** (<code>Secret | None</code>) – The API key to use for authentication.
282
289
-**azure_ad_token** (<code>Secret | None</code>) – [Azure Active Directory token](https://www.microsoft.com/en-us/security/business/identity-access/microsoft-entra-id).
0 commit comments