package com.yingpaipay.common.ai.pojo;

import lombok.Data;

import java.util.List;

@Data
public class SiliconFlowResp {

    private String id;

    private String object;

    private Long created;

    private String model;

    private List<Choice> choices;

    private Usage usage;

    private String system_fingerprint;

    @Data
    public static class Choice {

        private Integer index;

        private Message message;

        private String finish_reason;

        @Data
        public static class Message {

            private String role;

            private String content;

            private String reasoning_content;

        }

    }

    @Data
    public static class Usage {

        private Integer prompt_tokens;

        private Integer completion_tokens;

        private Integer total_tokens;

        private CompletionTokensDetails completion_tokens_details;

        private PromptTokensDetails prompt_tokens_details;

        private Integer prompt_cache_his_tokens;

        private Integer prompt_cache_miss_tokens;

        @Data
        public static class CompletionTokensDetails {

            private Integer reasoning_tokens;

        }

        @Data
        public static class PromptTokensDetails {

            private Integer cached_tokens;

        }

    }

}
