Class ChatCompletion

java.lang.Object
com.alibaba.dashscope.types.common.ResponseBase
com.alibaba.dashscope.types.completions.ChatCompletion

public class ChatCompletion extends ResponseBase
Non-streaming chat completion. Envelope fields live on ResponseBase.
  • Constructor Details

    • ChatCompletion

      public ChatCompletion()
  • Method Details

    • getModel

      public String getModel()
    • getChoices

      public List<Choice> getChoices()
    • getUsage

      public Usage getUsage()
    • getSearchInfo

      public SearchInfo getSearchInfo()
    • outputText

      public String outputText()
      First choice's message content; empty string when absent.