-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 Connector] Modified getProvider to use _inference/_services ES API instead of hardcoded values. #199047
[Inference Connector] Modified getProvider to use _inference/_services ES API instead of hardcoded values. #199047
Conversation
…s ES API instead of hardcoded values.
server-side ResponseOps changes LGTM, but I'd like to get one of the ResponseOps MX folks to review the UX bits. Especially with the file move. And perhaps CODEOWNERS can be adjusted to make this directory not owned by ResponseOps :-)
|
…Naumenko/kibana into inference-connector-dynamic-settings
…Naumenko/kibana into inference-connector-dynamic-settings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the move of /dynamic_config/types.ts
to common
? We normally only have there things that are shared between public
and server
and these types are only used in public
.
x-pack/plugins/stack_connectors/public/connector_types/inference/providers/get_providers.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/stack_connectors/server/routes/get_inference_services.test.ts
Outdated
Show resolved
Hide resolved
…-dynamic-settings
I moved it to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Opened a ticket to handle icon and name on ES side. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
cc @YulNaumenko |
…s ES API instead of hardcoded values. (elastic#199047) @ymao1 [introduced](elastic/elasticsearch#114862) new ES API which allows to fetch available services providers list with the settings and task types: `GET _inference/_services` This PR is changing hardcoded providers list `x-pack/plugins/stack_connectors/public/connector_types/inference/providers/get_providers.ts` to use new ES API.
…s ES API instead of hardcoded values. (elastic#199047) @ymao1 [introduced](elastic/elasticsearch#114862) new ES API which allows to fetch available services providers list with the settings and task types: `GET _inference/_services` This PR is changing hardcoded providers list `x-pack/plugins/stack_connectors/public/connector_types/inference/providers/get_providers.ts` to use new ES API.
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…s ES API instead of hardcoded values. (elastic#199047) @ymao1 [introduced](elastic/elasticsearch#114862) new ES API which allows to fetch available services providers list with the settings and task types: `GET _inference/_services` This PR is changing hardcoded providers list `x-pack/plugins/stack_connectors/public/connector_types/inference/providers/get_providers.ts` to use new ES API. (cherry picked from commit abf6a1d)
…s ES API instead of hardcoded values. (elastic#199047) @ymao1 [introduced](elastic/elasticsearch#114862) new ES API which allows to fetch available services providers list with the settings and task types: `GET _inference/_services` This PR is changing hardcoded providers list `x-pack/plugins/stack_connectors/public/connector_types/inference/providers/get_providers.ts` to use new ES API. (cherry picked from commit abf6a1d)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…ervices ES API instead of hardcoded values. (#199047) (#204680) # Backport This will backport the following commits from `main` to `8.x`: - [[Inference Connector] Modified getProvider to use _inference/_services ES API instead of hardcoded values. (#199047)](#199047) <!--- Backport version: 9.6.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Yuliia Naumenko","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-12T01:50:29Z","message":"[Inference Connector] Modified getProvider to use _inference/_services ES API instead of hardcoded values. (#199047)\n\n@ymao1\r\n[introduced](elastic/elasticsearch#114862) new\r\nES API which allows to fetch available services providers list with the\r\nsettings and task types:\r\n`GET _inference/_services` \r\nThis PR is changing hardcoded providers list\r\n`x-pack/plugins/stack_connectors/public/connector_types/inference/providers/get_providers.ts`\r\nto use new ES API.","sha":"abf6a1d4f6e83f108ed11a3e6279d73db514b352","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","v9.0.0","v8.17.0"],"title":"[Inference Connector] Modified getProvider to use _inference/_services ES API instead of hardcoded values.","number":199047,"url":"https://github.com/elastic/kibana/pull/199047","mergeCommit":{"message":"[Inference Connector] Modified getProvider to use _inference/_services ES API instead of hardcoded values. (#199047)\n\n@ymao1\r\n[introduced](elastic/elasticsearch#114862) new\r\nES API which allows to fetch available services providers list with the\r\nsettings and task types:\r\n`GET _inference/_services` \r\nThis PR is changing hardcoded providers list\r\n`x-pack/plugins/stack_connectors/public/connector_types/inference/providers/get_providers.ts`\r\nto use new ES API.","sha":"abf6a1d4f6e83f108ed11a3e6279d73db514b352"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199047","number":199047,"mergeCommit":{"message":"[Inference Connector] Modified getProvider to use _inference/_services ES API instead of hardcoded values. (#199047)\n\n@ymao1\r\n[introduced](elastic/elasticsearch#114862) new\r\nES API which allows to fetch available services providers list with the\r\nsettings and task types:\r\n`GET _inference/_services` \r\nThis PR is changing hardcoded providers list\r\n`x-pack/plugins/stack_connectors/public/connector_types/inference/providers/get_providers.ts`\r\nto use new ES API.","sha":"abf6a1d4f6e83f108ed11a3e6279d73db514b352"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"url":"https://github.com/elastic/kibana/pull/204679","number":204679,"branch":"8.17","state":"OPEN"}]}] BACKPORT-->
@ymao1 introduced new ES API which allows to fetch available services providers list with the settings and task types:
GET _inference/_services
This PR is changing hardcoded providers list
x-pack/plugins/stack_connectors/public/connector_types/inference/providers/get_providers.ts
to use new ES API.