Skip to content

[8.14] [Obs AI Assistant] Make sure arguments have a default (#185691)#188655

Merged
dgieselaar merged 3 commits intoelastic:8.14from
dgieselaar:backport/8.14/pr-185691
Jul 23, 2024
Merged

[8.14] [Obs AI Assistant] Make sure arguments have a default (#185691)#188655
dgieselaar merged 3 commits intoelastic:8.14from
dgieselaar:backport/8.14/pr-185691

Conversation

@dgieselaar
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.14:

Questions ?

Please refer to the Backport tool documentation

In elastic#184933, we removed the
parameters for the `context` function, however, OpenAI requires at least
an empty `arguments` object, so requests fail. This PR sets arguments to
an empty JSON object (`"{}"`) if `function_call.arguments` is empty.

(cherry picked from commit 8f3359c)
@dgieselaar dgieselaar added the backport This PR is a backport of another PR label Jul 18, 2024
@dgieselaar dgieselaar enabled auto-merge (squash) July 18, 2024 13:49
@botelastic botelastic bot added the Team:Obs AI Assistant Observability AI Assistant label Jul 18, 2024
@obltmachine
Copy link
Copy Markdown

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #55 / Alerting transform alert rule types transform_health rule runs correctly

Metrics [docs]

✅ unchanged

@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@dgieselaar dgieselaar merged commit 669df43 into elastic:8.14 Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR Team:Obs AI Assistant Observability AI Assistant

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants