[OpenAI Connector] Add optional defaultModel to Azure OpenAI connector schema#253575
[OpenAI Connector] Add optional defaultModel to Azure OpenAI connector schema#253575stephmilovic merged 3 commits intoelastic:mainfrom
defaultModel to Azure OpenAI connector schema#253575Conversation
|
Pinging @elastic/security-solution (Team: SecuritySolution) |
spong
left a comment
There was a problem hiding this comment.
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
💚 Build Succeeded
Metrics [docs]Async chunks
History
|
|
Starting backport for target branches: 8.19, 9.2, 9.3 https://github.com/elastic/kibana/actions/runs/22157080245 |
…tor schema (elastic#253575) (cherry picked from commit 14aa464)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…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>
…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>
|
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. |
… 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>
Add optional
defaultModelto Azure OpenAI connector schemaAdds
defaultModel: z.string().optional()to theAzureAibranch ofConfigSchemainkbn-connector-schemas. This is a schema-only change with no behavior impact. The implementation is in #253577This is a prerequisite for a follow-up PR that will use
defaultModelto inject a model into Azure request bodies. Because theAzureAiconfig schema uses Zod.strict(), adding the field here in order to follow the intermediary release process.Changes:
schemas/v1.ts: adddefaultModel: z.string().optional()to theAzureAiconfig branchv1.test.ts: add tests verifying Azure config validates with and withoutdefaultModel