@Preview(value="3.1")
public interface ChatResponse
| Modifier and Type | Method and Description |
|---|---|
List<ChatChoice> |
getChoices()
获取所有选择
|
ChatException |
getError()
获取错误
|
AssistantMessage |
getMessage()
获取消息
|
String |
getModel()
获取模型
|
AiUsage |
getUsage()
获取使用情况(完成时,才会有使用情况)
|
boolean |
hasChoices()
是否有选择
|
boolean |
isFinished()
是否完成
|
String getModel()
@Nullable ChatException getError()
boolean hasChoices()
List<ChatChoice> getChoices()
@Nullable AssistantMessage getMessage()
@Nullable AiUsage getUsage()
boolean isFinished()
Copyright © 2025. All rights reserved.