Class ChatCompletionResponse


  • public class ChatCompletionResponse
    extends Object
    Represents the response from the OpenAI chat completion API, containing details about the generated choices, token usage, and metadata like the model used and creation time.
    • Constructor Detail

      • ChatCompletionResponse

        public ChatCompletionResponse()
    • Method Detail

      • getId

        public String getId()
      • setId

        public void setId​(String id)
      • getObject

        public String getObject()
      • setObject

        public void setObject​(String object)
      • getCreated

        public long getCreated()
      • setCreated

        public void setCreated​(long created)
      • getModel

        public String getModel()
      • setModel

        public void setModel​(String model)
      • getSystemFingerprint

        public String getSystemFingerprint()
      • setSystemFingerprint

        public void setSystemFingerprint​(String systemFingerprint)