Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Obs AI Assistant] Add tokenCount event to complete event stream in s…
…erverless tests (elastic#205397) Closes elastic#203407 elastic#203408 elastic#203478 ## Summary ### Problem Some tests in serverless are failing after the migration to the Inference endpoints. This is due to not emitting the tokenCount event, which enables successfully closing the stream. ### Solution Emit the tokenCount event in the serverless tests when the title or conversation is simulated. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit a5909f3)
- Loading branch information