Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[inference] add support for modelName parameter #206706

Merged

Conversation

pgayvallet
Copy link
Contributor

@pgayvallet pgayvallet commented Jan 15, 2025

Summary

Related to #206710

Add a modelName parameter to the chatComplete inference API, and wire it accordingly on all adapters.

That parameter can be used to override the default model specified by the connector, at call time.

@pgayvallet
Copy link
Contributor Author

/ci

@pgayvallet pgayvallet added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 backport:version Backport to applied version labels Team:AI Infra AppEx AI Infrastructure Team v8.18.0 labels Jan 15, 2025
@pgayvallet pgayvallet marked this pull request as ready for review January 15, 2025 10:35
@pgayvallet pgayvallet requested review from a team as code owners January 15, 2025 10:35
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-ai-infra (Team:AI Infra)

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #44 / console app console app tabs navigation tabs should be navigable through URL

Metrics [docs]

Page load bundle

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

id before after diff
inference 7.5KB 7.5KB +60.0B
Unknown metric groups

API count

id before after diff
@kbn/inference-common 160 161 +1

@pgayvallet pgayvallet merged commit e0092ad into elastic:main Jan 16, 2025
19 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 16, 2025
## Summary

Related to elastic#206710

Add a `modelName` parameter to the chatComplete inference API, and wire
it accordingly on all adapters.

That parameter can be used to override the default model specified by
the connector, at call time.

(cherry picked from commit e0092ad)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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 Jan 16, 2025
)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[inference] add support for modelName parameter
(#206706)](#206706)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Pierre
Gayvallet","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-16T09:12:14Z","message":"[inference]
add support for modelName parameter (#206706)\n\n##
Summary\r\n\r\nRelated to
https://github.com/elastic/kibana/issues/206710\r\n\r\nAdd a `modelName`
parameter to the chatComplete inference API, and wire\r\nit accordingly
on all adapters.\r\n\r\nThat parameter can be used to override the
default model specified by\r\nthe connector, at call
time.","sha":"e0092ad2fdb9f449c3033aab90228b2574eb7a36","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:version","Team:AI
Infra","v8.18.0"],"title":"[inference] add support for modelName
parameter","number":206706,"url":"https://github.com/elastic/kibana/pull/206706","mergeCommit":{"message":"[inference]
add support for modelName parameter (#206706)\n\n##
Summary\r\n\r\nRelated to
https://github.com/elastic/kibana/issues/206710\r\n\r\nAdd a `modelName`
parameter to the chatComplete inference API, and wire\r\nit accordingly
on all adapters.\r\n\r\nThat parameter can be used to override the
default model specified by\r\nthe connector, at call
time.","sha":"e0092ad2fdb9f449c3033aab90228b2574eb7a36"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206706","number":206706,"mergeCommit":{"message":"[inference]
add support for modelName parameter (#206706)\n\n##
Summary\r\n\r\nRelated to
https://github.com/elastic/kibana/issues/206710\r\n\r\nAdd a `modelName`
parameter to the chatComplete inference API, and wire\r\nit accordingly
on all adapters.\r\n\r\nThat parameter can be used to override the
default model specified by\r\nthe connector, at call
time.","sha":"e0092ad2fdb9f449c3033aab90228b2574eb7a36"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Pierre Gayvallet <[email protected]>
viduni94 pushed a commit to viduni94/kibana that referenced this pull request Jan 23, 2025
## Summary

Related to elastic#206710

Add a `modelName` parameter to the chatComplete inference API, and wire
it accordingly on all adapters.

That parameter can be used to override the default model specified by
the connector, at call time.
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:AI Infra AppEx AI Infrastructure Team v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants