mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
# Backport This will backport the following commits from `main` to `8.x`: - [Prefix inference endpoint with “obs_” (#200174)](https://github.com/elastic/kibana/pull/200174) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Søren Louv-Jansen","email":"soren.louv@elastic.co"},"sourceCommit":{"committedDate":"2024-11-15T01:16:35Z","message":"Prefix inference endpoint with “obs_” (#200174)\n\nFollow-up to https://github.com/elastic/kibana/pull/186499","sha":"2296a791790bd4fa0b5dd5d22181aa3549af941c","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Team:Obs AI Assistant","ci:project-deploy-observability"],"title":"Prefix inference endpoint with “obs_”","number":200174,"url":"https://github.com/elastic/kibana/pull/200174","mergeCommit":{"message":"Prefix inference endpoint with “obs_” (#200174)\n\nFollow-up to https://github.com/elastic/kibana/pull/186499","sha":"2296a791790bd4fa0b5dd5d22181aa3549af941c"}},"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/200174","number":200174,"mergeCommit":{"message":"Prefix inference endpoint with “obs_” (#200174)\n\nFollow-up to https://github.com/elastic/kibana/pull/186499","sha":"2296a791790bd4fa0b5dd5d22181aa3549af941c"}}]}] BACKPORT--> Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>
This commit is contained in:
parent
5cd7cce787
commit
884a122926
4 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@ import { ElasticsearchClient } from '@kbn/core-elasticsearch-server';
|
|||
import { Logger } from '@kbn/logging';
|
||||
import moment from 'moment';
|
||||
|
||||
export const AI_ASSISTANT_KB_INFERENCE_ID = 'ai_assistant_kb_inference';
|
||||
export const AI_ASSISTANT_KB_INFERENCE_ID = 'obs_ai_assistant_kb_inference';
|
||||
|
||||
export async function createInferenceEndpoint({
|
||||
esClient,
|
||||
|
|
|
@ -34,7 +34,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
|
|||
.expect(200);
|
||||
|
||||
expect(res.body.service_settings.model_id).to.be('pt_tiny_elser');
|
||||
expect(res.body.inference_id).to.be('ai_assistant_kb_inference');
|
||||
expect(res.body.inference_id).to.be('obs_ai_assistant_kb_inference');
|
||||
|
||||
await deleteKnowledgeBaseModel(ml);
|
||||
await deleteInferenceEndpoint({ es });
|
||||
|
|
|
@ -77,7 +77,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
|
|||
expect(res.body.ready).to.be(false);
|
||||
expect(res.body.enabled).to.be(true);
|
||||
expect(res.body.errorMessage).to.include.string(
|
||||
'Inference endpoint not found [ai_assistant_kb_inference]'
|
||||
'Inference endpoint not found [obs_ai_assistant_kb_inference]'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -56,7 +56,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
|
|||
.expect(200);
|
||||
|
||||
expect(res.body.service_settings.model_id).to.be('pt_tiny_elser');
|
||||
expect(res.body.inference_id).to.be('ai_assistant_kb_inference');
|
||||
expect(res.body.inference_id).to.be('obs_ai_assistant_kb_inference');
|
||||
|
||||
await deleteKnowledgeBaseModel(ml);
|
||||
await deleteInferenceEndpoint({ es });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue