All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.felh.baidu.Usage Maven / Gradle / Ivy

There is a newer version: 4.0.2024102501
Show newest version
package xyz.felh.baidu;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
public class Usage implements IBaiduApiObject {

    /**
     * The number of prompt tokens used.
     */
    @JSONField(name = "prompt_tokens")
    @JsonProperty("prompt_tokens")
    private Long promptTokens;

    /**
     * The number of completion tokens used.
     */
    @JSONField(name = "completion_tokens")
    @JsonProperty("completion_tokens")
    private Long completionTokens;

    /**
     * The number of total tokens used
     */
    @JSONField(name = "total_tokens")
    @JsonProperty("total_tokens")
    private Long totalTokens;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy