public class StatisticInfo extends AbstractModel
header, skipSign| Constructor and Description |
|---|
StatisticInfo() |
StatisticInfo(StatisticInfo 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 |
|---|---|
Long |
getFirstTokenCost()
Get Time consumption of the first token.
|
Long |
getInputTokens()
Get Number of input tokens.
|
String |
getModelName()
Get Model name.
|
Long |
getOutputTokens()
Get Number of output tokens.
|
Long |
getTotalCost()
Get Total time consumption.
|
Long |
getTotalTokens()
Get Total number of tokens.
|
void |
setFirstTokenCost(Long FirstTokenCost)
Set Time consumption of the first token.
|
void |
setInputTokens(Long InputTokens)
Set Number of input tokens.
|
void |
setModelName(String ModelName)
Set Model name.
|
void |
setOutputTokens(Long OutputTokens)
Set Number of output tokens.
|
void |
setTotalCost(Long TotalCost)
Set Total time consumption.
|
void |
setTotalTokens(Long TotalTokens)
Set Total number of tokens.
|
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 StatisticInfo()
public StatisticInfo(StatisticInfo source)
public String getModelName()
public void setModelName(String ModelName)
ModelName - Model name.public Long getFirstTokenCost()
public void setFirstTokenCost(Long FirstTokenCost)
FirstTokenCost - Time consumption of the first token.public Long getTotalCost()
public void setTotalCost(Long TotalCost)
TotalCost - Total time consumption.public Long getInputTokens()
public void setInputTokens(Long InputTokens)
InputTokens - Number of input tokens.public Long getOutputTokens()
public void setOutputTokens(Long OutputTokens)
OutputTokens - Number of output tokens.public Long getTotalTokens()
public void setTotalTokens(Long TotalTokens)
TotalTokens - Total number of tokens.Copyright © 2025. All rights reserved.