com.alibaba.dashscope.common.Task Maven / Gradle / Ivy
// Copyright (c) Alibaba, Inc. and its affiliates.
package com.alibaba.dashscope.common;
public enum Task {
TEXT_GENERATION("text-generation"),
CODE_GENERATION("code-generation"),
MULTIMODAL_GENERATION("multimodal-generation"),
IMAGE_SYNTHESIS("text2image"),
TEXT_EMBEDDING("text-embedding"),
MULTIMODAL_EMBEDDING("multimodal-embedding"),
CHAT("chat"),
TEXT_TO_SPEECH("tts"),
ASR("asr"),
NLU("nlu"),
;
private final String value;
private Task(String value) {
this.value = value;
}
public String getValue() {
return value;
}
}