Skip to content

Conversation

dan-rubinstein
Copy link
Member

@dan-rubinstein dan-rubinstein commented Mar 17, 2025

Description

In a previous change we added the ChatCompletionInputs for completion and chat_completion task types. As part of these changes we updated the InferenceService class to always generate ChatCompletionInputs for these task types but did not update the alibaba completion action to accept these new input types. As such, Alibaba completion endpoints currently can not make any calls as they all expect DocumentsOnlyInputs but receive ChatCompletionInputs. This change updates the action to expect ChatCompletionInputs and adds tests to catch these types of changes in the future.

Testing

  • Unit tests
  • Manually tested creating a completion endpoint and calling perform inference on it.
@elasticsearchmachine
Copy link
Collaborator

Hi @dan-rubinstein, I've created a changelog YAML for you.

@dan-rubinstein dan-rubinstein marked this pull request as ready for review March 17, 2025 15:47
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@dan-rubinstein dan-rubinstein added the auto-backport Automatically create backport pull requests when merged label Mar 20, 2025
@dan-rubinstein dan-rubinstein merged commit 52bc962 into elastic:main Mar 20, 2025
17 checks passed
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.18 Commit could not be cherrypicked due to conflicts
8.x
9.0 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 125023

afoucret pushed a commit to afoucret/elasticsearch that referenced this pull request Mar 21, 2025
…puts (elastic#125023) * Fix AlibabaCloudSearchCompletionAction not accepting ChatCompletionInputs * Update docs/changelog/125023.yaml * Fix unit tests
dan-rubinstein added a commit to dan-rubinstein/elasticsearch that referenced this pull request Mar 21, 2025
…puts (elastic#125023) * Fix AlibabaCloudSearchCompletionAction not accepting ChatCompletionInputs * Update docs/changelog/125023.yaml * Fix unit tests
dan-rubinstein added a commit to dan-rubinstein/elasticsearch that referenced this pull request Mar 21, 2025
…puts (elastic#125023) * Fix AlibabaCloudSearchCompletionAction not accepting ChatCompletionInputs * Update docs/changelog/125023.yaml * Fix unit tests
smalyshev pushed a commit to smalyshev/elasticsearch that referenced this pull request Mar 21, 2025
…puts (elastic#125023) * Fix AlibabaCloudSearchCompletionAction not accepting ChatCompletionInputs * Update docs/changelog/125023.yaml * Fix unit tests
dan-rubinstein added a commit that referenced this pull request Mar 24, 2025
…puts (#125023) (#125416) * Fix AlibabaCloudSearchCompletionAction not accepting ChatCompletionInputs * Update docs/changelog/125023.yaml * Fix unit tests Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
dan-rubinstein added a commit that referenced this pull request Mar 24, 2025
…tionInputs (#125023) (#125332) * Fix AlibabaCloudSearchCompletionAction not accepting ChatCompletionInputs (#125023) * Fix AlibabaCloudSearchCompletionAction not accepting ChatCompletionInputs * Update docs/changelog/125023.yaml * Fix unit tests * Fixing unit test import --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
dan-rubinstein added a commit that referenced this pull request Mar 24, 2025
…puts (#125023) (#125414) * Fix AlibabaCloudSearchCompletionAction not accepting ChatCompletionInputs * Update docs/changelog/125023.yaml * Fix unit tests Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@dan-rubinstein dan-rubinstein deleted the alibaba-completion-action-fix branch March 24, 2025 17:02
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
…puts (elastic#125023) * Fix AlibabaCloudSearchCompletionAction not accepting ChatCompletionInputs * Update docs/changelog/125023.yaml * Fix unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged backport pending >bug :ml Machine learning Team:ML Meta label for the ML team v8.18.1 v8.19.0 v9.0.1 v9.1.0

3 participants