-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Observability AI Assistant] migrate to inference client #197630 (
#199286) (#203399) # Backport This will backport the following commits from `main` to `8.x`: - [[Observability AI Assistant] migrate to inference client #197630 (#199286)](#199286) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Arturo Lidueña","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-09T11:46:31Z","message":"[Observability AI Assistant] migrate to inference client #197630 (#199286)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/183245\r\n\r\nCloses #197630 \r\n[Observability AI Assistant] Partially migrate to inference client \r\n\r\nreplacing `inferenceClient.chatComplete` to\r\n`observabilityAIAssistantClient.chat` -\r\n`observabilityAIAssistantClient.complete` does a bunch of stuff on top\r\nof `chat`. keepping `observabilityAIAssistantClient.chat` as a wrapper\r\nfor now because it also adds instrumentation and logging.","sha":"df0dfa5216c1d1d3b72a30b3b1d903781db90615","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Obs AI Assistant","ci:project-deploy-observability","backport:version","v8.18.0"],"title":"[Observability AI Assistant] migrate to inference client #197630","number":199286,"url":"https://github.com/elastic/kibana/pull/199286","mergeCommit":{"message":"[Observability AI Assistant] migrate to inference client #197630 (#199286)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/183245\r\n\r\nCloses #197630 \r\n[Observability AI Assistant] Partially migrate to inference client \r\n\r\nreplacing `inferenceClient.chatComplete` to\r\n`observabilityAIAssistantClient.chat` -\r\n`observabilityAIAssistantClient.complete` does a bunch of stuff on top\r\nof `chat`. keepping `observabilityAIAssistantClient.chat` as a wrapper\r\nfor now because it also adds instrumentation and logging.","sha":"df0dfa5216c1d1d3b72a30b3b1d903781db90615"}},"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/199286","number":199286,"mergeCommit":{"message":"[Observability AI Assistant] migrate to inference client #197630 (#199286)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/183245\r\n\r\nCloses #197630 \r\n[Observability AI Assistant] Partially migrate to inference client \r\n\r\nreplacing `inferenceClient.chatComplete` to\r\n`observabilityAIAssistantClient.chat` -\r\n`observabilityAIAssistantClient.complete` does a bunch of stuff on top\r\nof `chat`. keepping `observabilityAIAssistantClient.chat` as a wrapper\r\nfor now because it also adds instrumentation and logging.","sha":"df0dfa5216c1d1d3b72a30b3b1d903781db90615"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Arturo Lidueña <[email protected]>
- Loading branch information
1 parent
4928233
commit 54d86c7
Showing
47 changed files
with
559 additions
and
2,667 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 0 additions & 72 deletions
72
...s/observability_solution/observability_ai_assistant/common/utils/process_openai_stream.ts
This file was deleted.
Oops, something went wrong.
26 changes: 7 additions & 19 deletions
26
x-pack/plugins/observability_solution/observability_ai_assistant/kibana.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,26 @@ | ||
{ | ||
"type": "plugin", | ||
"id": "@kbn/observability-ai-assistant-plugin", | ||
"owner": [ | ||
"@elastic/obs-ai-assistant" | ||
], | ||
"owner": ["@elastic/obs-ai-assistant"], | ||
"group": "platform", | ||
"visibility": "shared", | ||
"plugin": { | ||
"id": "observabilityAIAssistant", | ||
"browser": true, | ||
"server": true, | ||
"configPath": [ | ||
"xpack", | ||
"observabilityAIAssistant" | ||
], | ||
"configPath": ["xpack", "observabilityAIAssistant"], | ||
"requiredPlugins": [ | ||
"actions", | ||
"features", | ||
"licensing", | ||
"security", | ||
"taskManager", | ||
"dataViews" | ||
], | ||
"optionalPlugins": [ | ||
"cloud", | ||
"serverless" | ||
], | ||
"requiredBundles": [ | ||
"kibanaReact", | ||
"kibanaUtils" | ||
], | ||
"runtimePluginDependencies": [ | ||
"ml" | ||
"dataViews", | ||
"inference" | ||
], | ||
"optionalPlugins": ["cloud", "serverless"], | ||
"requiredBundles": ["kibanaReact", "kibanaUtils"], | ||
"runtimePluginDependencies": ["ml"], | ||
"extraPublicDirs": [] | ||
} | ||
} |
Oops, something went wrong.