Skip to content

[9.4] [Inference] Move model resolution entirely to backend (#263843)#264107

Merged
sphilipse merged 1 commit intoelastic:9.4from
sphilipse:backport/9.4/pr-263843
Apr 17, 2026
Merged

[9.4] [Inference] Move model resolution entirely to backend (#263843)#264107
sphilipse merged 1 commit intoelastic:9.4from
sphilipse:backport/9.4/pr-263843

Conversation

@sphilipse
Copy link
Copy Markdown
Member

Backport

This will backport the following commits from main to 9.4:

Questions ?

Please refer to the Backport tool documentation

## Summary

This moves the model resolution entirely to the backend, no longer
splitting the logic between two places.

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: macroscopeapp[bot] <170038800+macroscopeapp[bot]@users.noreply.github.com>
(cherry picked from commit 32bdcc3)

# Conflicts:
#	x-pack/platform/plugins/shared/streams_app/test/scout/ui/tests/data_management/data_routing/ai_suggestions_button.spec.ts
#	x-pack/solutions/security/plugins/security_solution/public/management/cypress/tasks/insights.ts
@sphilipse sphilipse added the backport This PR is a backport of another PR label Apr 17, 2026
@sphilipse sphilipse enabled auto-merge (squash) April 17, 2026 15:00
@sphilipse sphilipse merged commit cac42fd into elastic:9.4 Apr 17, 2026
19 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
agentBuilder 1464 1463 -1
automaticImport 256 255 -1
elasticAssistant 612 611 -1
observabilityAgentBuilder 104 103 -1
observabilityAIAssistant 178 177 -1
securitySolution 9341 9340 -1
streamsApp 1823 1822 -1
workplaceAIApp 526 524 -2
total -9

Async chunks

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

id before after diff
agentBuilder 1.1MB 1.1MB -775.0B
automaticImport 323.9KB 323.1KB -796.0B
observabilityAgentBuilder 24.6KB 23.8KB -814.0B
observabilityAIAssistant 19.9KB 19.9KB +1.0B
securitySolution 11.7MB 11.7MB -1.5KB
streamsApp 1.9MB 1.9MB -852.0B
workplaceAIApp 514.6KB 513.8KB -822.0B
total -5.5KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
agentBuilder 43.2KB 43.2KB -50.0B
elasticAssistant 272.7KB 272.0KB -796.0B
observabilityAgentBuilder 9.4KB 9.5KB +6.0B
observabilityAIAssistant 66.4KB 65.6KB -740.0B
total -1.5KB
Unknown metric groups

API count

id before after diff
@kbn/inference-common 396 397 +1

References to deprecated APIs

id before after diff
@kbn/elastic-assistant 7 16 +9
agentBuilder 51 52 +1
automaticImport 1 2 +1
observabilityAgentBuilder 0 1 +1
observabilityAIAssistant 2 3 +1
securitySolution 536 543 +7
streamsApp 9 11 +2
workplaceAIApp 9 10 +1
total +23

Unreferenced deprecated APIs

id before after diff
@kbn/elastic-assistant 7 16 +9
agentBuilder 51 52 +1
automaticImport 1 2 +1
observabilityAgentBuilder 0 1 +1
observabilityAIAssistant 2 3 +1
securitySolution 536 543 +7
streamsApp 9 11 +2
workplaceAIApp 9 10 +1
total +23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants