-
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
[Obs AI Assistant] Fix bug with get_alerts_dataset_info
#212077
[Obs AI Assistant] Fix bug with get_alerts_dataset_info
#212077
Conversation
Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant) |
// remove the function request | ||
...messages.filter((msg) => !msg.message?.function_call), | ||
// remove the last function request | ||
...messages.slice(0, -1), |
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.
This was the root cause. The rest of the PR is just adding logs to aid in debugging
Starting backport for target branches: 8.x, 9.0 |
💚 Build Succeeded
Metrics [docs]
History
|
Merging now due to the urgency. |
…2077) Closes elastic#212005 Regression introduced in: https://github.com/elastic/kibana/pull/209773/files#diff-83722bb07633512b20beb965628b18290628de985d399989011cc20c82fa483cL116 TODO: - Add a test that would have caught this (cherry picked from commit 54f96d0)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
) (#212181) # Backport This will backport the following commits from `main` to `9.0`: - [[Obs AI Assistant] Fix bug with `get_alerts_dataset_info` (#212077)](#212077) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Søren Louv-Jansen","email":"soren.louv@elastic.co"},"sourceCommit":{"committedDate":"2025-02-22T11:50:14Z","message":"[Obs AI Assistant] Fix bug with `get_alerts_dataset_info` (#212077)\n\nCloses https://github.com/elastic/kibana/issues/212005\n\nRegression introduced in:\nhttps://github.com//pull/209773/files#diff-83722bb07633512b20beb965628b18290628de985d399989011cc20c82fa483cL116\n\nTODO:\n\n- Add a test that would have caught this","sha":"54f96d0070306bf13eeace9a55a157b5a8341526","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Obs AI Assistant","backport:version","v9.1.0","v8.19.0"],"title":"[Obs AI Assistant] Fix bug with `get_alerts_dataset_info`","number":212077,"url":"https://github.com/elastic/kibana/pull/212077","mergeCommit":{"message":"[Obs AI Assistant] Fix bug with `get_alerts_dataset_info` (#212077)\n\nCloses https://github.com/elastic/kibana/issues/212005\n\nRegression introduced in:\nhttps://github.com//pull/209773/files#diff-83722bb07633512b20beb965628b18290628de985d399989011cc20c82fa483cL116\n\nTODO:\n\n- Add a test that would have caught this","sha":"54f96d0070306bf13eeace9a55a157b5a8341526"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212077","number":212077,"mergeCommit":{"message":"[Obs AI Assistant] Fix bug with `get_alerts_dataset_info` (#212077)\n\nCloses https://github.com/elastic/kibana/issues/212005\n\nRegression introduced in:\nhttps://github.com//pull/209773/files#diff-83722bb07633512b20beb965628b18290628de985d399989011cc20c82fa483cL116\n\nTODO:\n\n- Add a test that would have caught this","sha":"54f96d0070306bf13eeace9a55a157b5a8341526"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>
Closes #212005
Regression introduced in: https://github.com/elastic/kibana/pull/209773/files#diff-83722bb07633512b20beb965628b18290628de985d399989011cc20c82fa483cL116
TODO: