Class ChatCompletionMessagePart


  • public class ChatCompletionMessagePart
    extends Object
    Represents a part of a chat completion message, which may be a text or an image URL. This allows messages to include multiple types of content.
    
              {
               "type": "text",
               "text": "What’s in this image?"
             }
             or
             {
               "type": "image_url",
               "image_url": {
                 "url": "https://www.example.net/somepicture.jpg"
               }
             }