package com.bifan.txtreaderlib.bean;

import java.util.List;

//{
//        "id": "chatcmpl-123",
//        "object": "chat.completion",
//        "created": 1677652288,
//        "model": "gpt-3.5-turbo-0125",
//        "system_fingerprint": "fp_44709d6fcb",
//        "choices": [{
//        "index": 0,
//        "message": {
//        "role": "assistant",
//        "content": "\n\nHello there, how may I assist you today?",
//        },
//        "logprobs": null,
//        "finish_reason": "stop"
//        }],
//        "usage": {
//        "prompt_tokens": 9,
//        "completion_tokens": 12,
//        "total_tokens": 21
//        }
//        }


public class ChatResponse {
    String id;
    String object;
    long created;
    String model;
    public List<Choice> choices;

    public List<Choice> getChoices() {
        return choices;
    }

    public void setChoices(List<Choice> choices) {
        this.choices = choices;
    }

    public static class Choice {
        int index;
        public Message message;
        // 你可以根据需要继续添加其他字段如 logprobs, finish_reason 等
    }

    public static class Message {
        String role;
        public String content;
    }

    // 假设你已经有 getter 方法或者你可以自行添加
}
