public class Choice extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| Choice() | 
| Choice(Choice source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| Delta | getDelta()Get 增量返回值,流式调用时使用该字段。 | 
| String | getFinishReason()Get 结束标志位,可能为 stop、 content_filter。
stop 表示输出正常结束。
content_filter 只在开启流式输出审核时会出现,表示安全审核未通过。 | 
| Long | getIndex()Get 索引值,流式调用时使用该字段。 | 
| Message | getMessage()Get 返回值,非流式调用时使用该字段。 | 
| void | setDelta(Delta Delta)Set 增量返回值,流式调用时使用该字段。 | 
| void | setFinishReason(String FinishReason)Set 结束标志位,可能为 stop、 content_filter。
stop 表示输出正常结束。
content_filter 只在开启流式输出审核时会出现,表示安全审核未通过。 | 
| void | setIndex(Long Index)Set 索引值,流式调用时使用该字段。 | 
| void | setMessage(Message Message)Set 返回值,非流式调用时使用该字段。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic Choice()
public Choice(Choice source)
public String getFinishReason()
public void setFinishReason(String FinishReason)
FinishReason - 结束标志位,可能为 stop、 content_filter。
stop 表示输出正常结束。
content_filter 只在开启流式输出审核时会出现,表示安全审核未通过。public Delta getDelta()
public void setDelta(Delta Delta)
Delta - 增量返回值,流式调用时使用该字段。public Message getMessage()
public void setMessage(Message Message)
Message - 返回值,非流式调用时使用该字段。public Long getIndex()
public void setIndex(Long Index)
Index - 索引值,流式调用时使用该字段。Copyright © 2025. All rights reserved.