AZURE_API_VERSION env var now overrides the default API version

(falls back to 2024-12-01-preview).
This commit is contained in:
Cyber MacGeddon 2026-03-28 11:04:54 +00:00
parent 4aa540c622
commit a950863886

View file

@ -20,7 +20,7 @@ default_ident = "text-completion"
default_temperature = 0.0
default_max_output = 4192
default_api = "2024-12-01-preview"
default_api = os.getenv("AZURE_API_VERSION", "2024-12-01-preview")
default_endpoint = os.getenv("AZURE_ENDPOINT", None)
default_token = os.getenv("AZURE_TOKEN", None)
default_model = os.getenv("AZURE_MODEL", None)