Skip to content

[OpenAI Connector] Add optional defaultModel to Azure OpenAI connector schema#253575

Merged
stephmilovic merged 3 commits intoelastic:mainfrom
stephmilovic:issue_253520_schema
Feb 18, 2026
Merged

[OpenAI Connector] Add optional defaultModel to Azure OpenAI connector schema#253575
stephmilovic merged 3 commits intoelastic:mainfrom
stephmilovic:issue_253520_schema

Conversation

@stephmilovic
Copy link
Copy Markdown
Contributor

@stephmilovic stephmilovic commented Feb 17, 2026

Add optional defaultModel to Azure OpenAI connector schema

Adds defaultModel: z.string().optional() to the AzureAi branch of ConfigSchema in kbn-connector-schemas. This is a schema-only change with no behavior impact. The implementation is in #253577

This is a prerequisite for a follow-up PR that will use defaultModel to inject a model into Azure request bodies. Because the AzureAi config schema uses Zod .strict(), adding the field here in order to follow the intermediary release process.

Changes:

  • schemas/v1.ts: add defaultModel: z.string().optional() to the AzureAi config branch
  • v1.test.ts: add tests verifying Azure config validates with and without defaultModel

@stephmilovic stephmilovic added release_note:fix Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. backport:version Backport to applied version labels v9.4.0 v9.3.1 v9.2.6 v8.19.12 release_note:skip Skip the PR/issue when compiling release notes and removed release_note:fix labels Feb 17, 2026
@stephmilovic stephmilovic marked this pull request as ready for review February 17, 2026 21:41
@stephmilovic stephmilovic requested a review from a team as a code owner February 17, 2026 21:41
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

Copy link
Copy Markdown
Member

@spong spong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Schema changes LGTM! 👍

Kinda wild we had defaultModel in the schema for the other providers but not for AzureAi. That's all taken care of now though! 🙂


Note: We should probably ensure this case is handled in the inference endpoints as well, right? Ala what we did for Bedrock region with elastic/elasticsearch#110248?

Looks like this is not the case with the current live API, but maybe it's been merged for 9.4?

https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-azureopenai

Image

@stephmilovic stephmilovic requested a review from a team as a code owner February 18, 2026 17:49
Copy link
Copy Markdown
Contributor

@ersin-erdal ersin-erdal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 11.1MB 11.1MB +32.0B

History

@stephmilovic stephmilovic merged commit 14aa464 into elastic:main Feb 18, 2026
16 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19, 9.2, 9.3

https://github.com/elastic/kibana/actions/runs/22157080245

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 Some backports could not be created

Status Branch Result
8.19 Backport failed because of merge conflicts
9.2 Backport failed because of merge conflicts
9.3

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 253575

Questions ?

Please refer to the Backport tool documentation

@stephmilovic
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
9.2
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 18, 2026
…connector schema (#253575) (#253831)

# Backport

This will backport the following commits from `main` to `9.3`:
- [[OpenAI Connector] Add optional `defaultModel` to Azure OpenAI
connector schema
(#253575)](#253575)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Steph
Milovic","email":"stephanie.milovic@elastic.co"},"sourceCommit":{"committedDate":"2026-02-18T20:49:32Z","message":"[OpenAI
Connector] Add optional `defaultModel` to Azure OpenAI connector schema
(#253575)","sha":"14aa4640a0fd6b8f35b8ffd7e26a8d3337b782ea","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:
SecuritySolution","backport:version","v9.4.0","v9.3.1","v9.2.6","v8.19.12"],"title":"[OpenAI
Connector] Add optional `defaultModel` to Azure OpenAI connector
schema","number":253575,"url":"https://github.com/elastic/kibana/pull/253575","mergeCommit":{"message":"[OpenAI
Connector] Add optional `defaultModel` to Azure OpenAI connector schema
(#253575)","sha":"14aa4640a0fd6b8f35b8ffd7e26a8d3337b782ea"}},"sourceBranch":"main","suggestedTargetBranches":["9.3","9.2","8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/253575","number":253575,"mergeCommit":{"message":"[OpenAI
Connector] Add optional `defaultModel` to Azure OpenAI connector schema
(#253575)","sha":"14aa4640a0fd6b8f35b8ffd7e26a8d3337b782ea"}},{"branch":"9.3","label":"v9.3.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.2","label":"v9.2.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.12","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
stephmilovic added a commit that referenced this pull request Feb 19, 2026
…connector schema (#253575) (#253854)

# Backport

This will backport the following commits from `main` to `9.2`:
- [[OpenAI Connector] Add optional `defaultModel` to Azure OpenAI
connector schema
(#253575)](#253575)

<!--- Backport version: 10.2.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Steph
Milovic","email":"stephanie.milovic@elastic.co"},"sourceCommit":{"committedDate":"2026-02-18T20:49:32Z","message":"[OpenAI
Connector] Add optional `defaultModel` to Azure OpenAI connector schema
(#253575)","sha":"14aa4640a0fd6b8f35b8ffd7e26a8d3337b782ea","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:
SecuritySolution","backport:version","v9.4.0","v9.3.1","v9.2.6","v8.19.12"],"title":"[OpenAI
Connector] Add optional `defaultModel` to Azure OpenAI connector
schema","number":253575,"url":"https://github.com/elastic/kibana/pull/253575","mergeCommit":{"message":"[OpenAI
Connector] Add optional `defaultModel` to Azure OpenAI connector schema
(#253575)","sha":"14aa4640a0fd6b8f35b8ffd7e26a8d3337b782ea"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/253575","number":253575,"mergeCommit":{"message":"[OpenAI
Connector] Add optional `defaultModel` to Azure OpenAI connector schema
(#253575)","sha":"14aa4640a0fd6b8f35b8ffd7e26a8d3337b782ea"}},{"branch":"9.3","label":"v9.3.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/253831","number":253831,"state":"OPEN"},{"branch":"9.2","label":"v9.2.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.12","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
chrisbmar pushed a commit to chrisbmar/kibana that referenced this pull request Feb 19, 2026
ersin-erdal pushed a commit to ersin-erdal/kibana that referenced this pull request Feb 19, 2026
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Feb 20, 2026
@kibanamachine
Copy link
Copy Markdown
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @stephmilovic

stephmilovic added a commit that referenced this pull request Feb 21, 2026
… connector schema (#253575) (#253855)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[OpenAI Connector] Add optional `defaultModel` to Azure OpenAI
connector schema
(#253575)](#253575)

<!--- Backport version: 10.2.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Steph
Milovic","email":"stephanie.milovic@elastic.co"},"sourceCommit":{"committedDate":"2026-02-18T20:49:32Z","message":"[OpenAI
Connector] Add optional `defaultModel` to Azure OpenAI connector schema
(#253575)","sha":"14aa4640a0fd6b8f35b8ffd7e26a8d3337b782ea","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:
SecuritySolution","backport:version","v9.4.0","v9.3.1","v9.2.6","v8.19.12"],"title":"[OpenAI
Connector] Add optional `defaultModel` to Azure OpenAI connector
schema","number":253575,"url":"https://github.com/elastic/kibana/pull/253575","mergeCommit":{"message":"[OpenAI
Connector] Add optional `defaultModel` to Azure OpenAI connector schema
(#253575)","sha":"14aa4640a0fd6b8f35b8ffd7e26a8d3337b782ea"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/253575","number":253575,"mergeCommit":{"message":"[OpenAI
Connector] Add optional `defaultModel` to Azure OpenAI connector schema
(#253575)","sha":"14aa4640a0fd6b8f35b8ffd7e26a8d3337b782ea"}},{"branch":"9.3","label":"v9.3.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/253831","number":253831,"state":"OPEN"},{"branch":"9.2","label":"v9.2.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.12","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.19.12 v9.2.6 v9.3.1 v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants