- 
                Notifications
    
You must be signed in to change notification settings  - Fork 25.6k
 
[Inference API] Make message content optional in unified API #118998
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
Conversation
| 
           Pinging @elastic/ml-core (Team:ML)  | 
    
        
          
                server/src/main/java/org/elasticsearch/inference/UnifiedCompletionRequest.java
          
            Show resolved
            Hide resolved
        
              
          
                ...h/xpack/inference/external/request/openai/OpenAiUnifiedChatCompletionRequestEntityTests.java
          
            Show resolved
            Hide resolved
        
      | public Message(StreamInput in) throws IOException { | ||
| this( | ||
| in.readNamedWriteable(Content.class), | ||
| in.readOptionalNamedWriteable(Content.class), | 
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.
Just noting here we don't need to change the transport version because this code is feature flagged
          💔 Backport failed
 You can use sqren/backport to manually backport by running   | 
    
          💚 All backports created successfully
 Questions ?Please refer to the Backport tool documentation  | 
    
…#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
#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
No description provided.