Skip to content

Drop AZURE_OPENAI_DEPLOYMENT in favour of OPENSCIENTIST_MODEL - #295

Merged
LucaCappelletti94 merged 1 commit into
mainfrom
refactor/drop-azure-openai-deployment
Sep 15, 2026
Merged

LucaCappelletti94 merged 1 commit into
mainfrom
refactor/drop-azure-openai-deployment

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Collaborator

Azure's OpenAI v1 surface takes the deployment name as the model in the request body, which is how this provider has always routed, so AZURE_OPENAI_DEPLOYMENT was a second spelling of the model name. It is gone. OPENSCIENTIST_MODEL now carries the deployment name and is required whenever the provider is azure-openai. The provider enforces no naming pattern on its model, so whatever name an operator gave their deployment still validates.

Three comments were contradicting the code and are corrected along the way. The module docstring claimed Azure selects the model from the URL path rather than the request body, which the base URL builder already disproved, and the job model resolver cited the Azure deployment as its example of a provider that carries its own model.

An operator with the old variable still set in an environment or .env file has to move its value to OPENSCIENTIST_MODEL. The old name is now simply ignored, so the symptom of forgetting is a startup complaint that OPENSCIENTIST_MODEL is required.

@codecov

codecov Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud

Copy link
Copy Markdown

@LucaCappelletti94
LucaCappelletti94 merged commit f9033f8 into main Sep 15, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant