Skip to content
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

[Inference API] Make message content optional in unified API #118998

Merged
merged 6 commits into from
Dec 23, 2024

Conversation

maxhniebergall
Copy link
Member

No description provided.

@maxhniebergall maxhniebergall added >non-issue :ml Machine learning auto-backport Automatically create backport pull requests when merged v9.0.0 v8.18.0 labels Dec 18, 2024
@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Dec 18, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@@ -143,7 +148,7 @@ private static Content parseContent(XContentParser parser) throws IOException {

public Message(StreamInput in) throws IOException {
this(
in.readNamedWriteable(Content.class),
in.readOptionalNamedWriteable(Content.class),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noting here we don't need to change the transport version because this code is feature flagged

@maxhniebergall maxhniebergall merged commit 79a8226 into main Dec 23, 2024
17 checks passed
@maxhniebergall maxhniebergall deleted the makeContentOptionalUnifiedInferenceApi branch December 23, 2024 15:53
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

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

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

@maxhniebergall
Copy link
Member Author

💚 All backports created successfully

Status Branch Result
8.x

Questions ?

Please refer to the Backport tool documentation

maxhniebergall added a commit to maxhniebergall/elasticsearch that referenced this pull request Dec 23, 2024
…#118998)

* Allow for null/empty content field

* remove tests which checked for null content

* [CI] Auto commit changes from spotless

* Improvements from review

---------

Co-authored-by: elasticsearchmachine <[email protected]>
(cherry picked from commit 79a8226)

# Conflicts:
#	x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/external/request/openai/OpenAiUnifiedChatCompletionRequestEntity.java
elasticsearchmachine pushed a commit that referenced this pull request Dec 23, 2024
#119226)

* Allow for null/empty content field

* remove tests which checked for null content

* [CI] Auto commit changes from spotless

* Improvements from review

---------

Co-authored-by: elasticsearchmachine <[email protected]>
(cherry picked from commit 79a8226)

# Conflicts:
#	x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/external/request/openai/OpenAiUnifiedChatCompletionRequestEntity.java
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 :ml Machine learning >non-issue Team:ML Meta label for the ML team v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants