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

com.alibaba.dashscope.embeddings.MultiModalEmbeddingItemImage Maven / Gradle / Ivy

There is a newer version: 2.16.9
Show newest version
// Copyright (c) Alibaba, Inc. and its affiliates.

package com.alibaba.dashscope.embeddings;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.SuperBuilder;

@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
public class MultiModalEmbeddingItemImage extends MultiModalEmbeddingItemBase {
  public String image;

  public MultiModalEmbeddingItemImage(String image, Double factor) {
    super(factor);
    this.image = image;
  }

  public MultiModalEmbeddingItemImage(String image) {
    this.image = image;
  }

  @Override
  public String getModal() {
    return "image";
  }

  @Override
  public String getContent() {
    return image;
  }

  @Override
  public void setContent(String content) {
    this.image = content;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy