Skip to content

Commit

Permalink
[8.16] Add watsonx icon for inference endpoints management page (#197116
Browse files Browse the repository at this point in the history
) (#197275)

# Backport

This will backport the following commits from `main` to `8.16`:
- [Add watsonx icon for inference endpoints management page
(#197116)](#197116)

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

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

<!--BACKPORT [{"author":{"name":"Saikat
Sarkar","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-22T15:10:40Z","message":"Add
watsonx icon for inference endpoints management page (#197116)\n\nThis
PR adds IBM Watsonx ai support for the Inference Endpoints\r\nManagement
UI.\r\n\r\n<img width=\"1249\" alt=\"Screenshot 2024-10-21 at 12 22
09 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/58516bef-4800-4198-91bf-c428d878d787\">","sha":"8e1fcc126ac1b5b012b5730d51ca1ba6304020d5","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:EnterpriseSearch","backport:prev-minor","v8.16.0"],"title":"Add
watsonx icon for inference endpoints management
page","number":197116,"url":"https://github.com/elastic/kibana/pull/197116","mergeCommit":{"message":"Add
watsonx icon for inference endpoints management page (#197116)\n\nThis
PR adds IBM Watsonx ai support for the Inference Endpoints\r\nManagement
UI.\r\n\r\n<img width=\"1249\" alt=\"Screenshot 2024-10-21 at 12 22
09 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/58516bef-4800-4198-91bf-c428d878d787\">","sha":"8e1fcc126ac1b5b012b5730d51ca1ba6304020d5"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197116","number":197116,"mergeCommit":{"message":"Add
watsonx icon for inference endpoints management page (#197116)\n\nThis
PR adds IBM Watsonx ai support for the Inference Endpoints\r\nManagement
UI.\r\n\r\n<img width=\"1249\" alt=\"Screenshot 2024-10-21 at 12 22
09 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/58516bef-4800-4198-91bf-c428d878d787\">","sha":"8e1fcc126ac1b5b012b5730d51ca1ba6304020d5"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Saikat Sarkar <[email protected]>
  • Loading branch information
kibanamachine and saikatsarkar056 authored Oct 22, 2024
1 parent 8e5ac2b commit f9dee7c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,16 @@ export type InferenceServiceSettings =
};
};
}
| {
service: 'watsonxai';
service_settings: {
api_key: string;
url: string;
model_id: string;
project_id: string;
api_version: string;
};
}
| {
service: 'amazonbedrock';
service_settings: {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import googleAIStudioIcon from '../../../../assets/images/providers/google_ai_st
import mistralIcon from '../../../../assets/images/providers/mistral.svg';
import amazonBedrockIcon from '../../../../assets/images/providers/amazon_bedrock.svg';
import alibabaCloudAISearchIcon from '../../../../assets/images/providers/alibaba_cloud_ai_search.svg';
import watsonxAIIcon from '../../../../assets/images/providers/watsonx_ai.svg';
import { ServiceProviderKeys } from '../../types';
import * as i18n from './translations';

Expand Down Expand Up @@ -78,6 +79,10 @@ export const SERVICE_PROVIDERS: Record<ServiceProviderKeys, ServiceProviderRecor
icon: openAIIcon,
name: 'OpenAI',
},
[ServiceProviderKeys.watsonxai]: {
icon: watsonxAIIcon,
name: 'WatsonxAI',
},
};

export const ServiceProvider: React.FC<ServiceProviderProps> = ({ providerEndpoint }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export enum ServiceProviderKeys {
hugging_face = 'hugging_face',
mistral = 'mistral',
openai = 'openai',
watsonxai = 'watsonxai',
}

export enum SortFieldInferenceEndpoint {
Expand Down

0 comments on commit f9dee7c

Please sign in to comment.