AzureAIRole.java 475 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
package com.kwan.springbootkwan.entity.openai;

import com.google.gson.annotations.SerializedName;

public enum AzureAIRole {

    @SerializedName("assistant")
    ASSISTANT("assistant"),
    @SerializedName("system")
    SYSTEM("system"),
    @SerializedName("user")
    USER("user"),
    ;
    private final String text;

    private AzureAIRole(final String text) {
        this.text = text;
    }

    @Override
    public String toString() {
        return text;
    }
}