-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathEmbeddingsReq.java
40 lines (33 loc) · 1.06 KB
/
EmbeddingsReq.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package cn.jianwoo.openai.chatgptapi.bo;
import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.List;
/**
* @author gulihua
* @Description
* @date 2023-02-28 18:57
*/
@Data
@ToString
@Builder
public class EmbeddingsReq implements Serializable
{
private static final long serialVersionUID = -4876536562204868695L;
/**
* ID of the model to use. You can use the List models API to see all of your available models, or see our ModelRes
* overview for descriptions of them.
*/
private String model;
/** A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. */
private String user;
/**
* Input text to get embeddings for, encoded as a string or array of tokens. To get embeddings for multiple inputs
* in a single request, pass an array of strings or array of token arrays. Each input must not exceed 8192 tokens in
* length.
*
*/
private List<String> input;
}