Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V 

A

AbstractStreamListener - Class in com.plexpt.chatgpt.listener
EventSource listener for chat-related events.
AbstractStreamListener() - Constructor for class com.plexpt.chatgpt.listener.AbstractStreamListener
 
add(String, String) - Static method in class com.plexpt.chatgpt.util.ChatContextHolder
添加对话
add(String, Message) - Static method in class com.plexpt.chatgpt.util.ChatContextHolder
添加对话
add(Object) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
add(int, Object) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
addAll(Collection) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
addAll(int, Collection) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
Api - Interface in com.plexpt.chatgpt.api
API接口 API interface
apiClient - Variable in class com.plexpt.chatgpt.ChatGPT
 
apiHost - Variable in class com.plexpt.chatgpt.ChatGPT
自定义api host使用builder的方式构造client
apiHost - Variable in class com.plexpt.chatgpt.ChatGPTStream
反向代理
apiKey - Variable in class com.plexpt.chatgpt.ChatGPT
keys
apiKey - Variable in class com.plexpt.chatgpt.ChatGPTStream
 
apiKeyList - Variable in class com.plexpt.chatgpt.ChatGPT
 
apiKeyList - Variable in class com.plexpt.chatgpt.ChatGPTStream
 
arguments - Variable in class com.plexpt.chatgpt.entity.chat.FunctionCallResult
 
AudioModel - Enum in com.plexpt.chatgpt.entity.audio.enums
 
AudioModel() - Constructor for enum com.plexpt.chatgpt.entity.audio.enums.AudioModel
 
AudioResponse - Class in com.plexpt.chatgpt.entity.audio
 
AudioResponse() - Constructor for class com.plexpt.chatgpt.entity.audio.AudioResponse
 
audioSpeech(SpeechRequest) - Method in interface com.plexpt.chatgpt.api.Api
生成语音 Create speech
audioSpeech(SpeechRequest) - Method in class com.plexpt.chatgpt.ChatGPT
 
audioTranscription(File, Transcriptions) - Method in class com.plexpt.chatgpt.ChatGPT
 
audioTranscriptions(MultipartBody.Part, Transcriptions) - Method in interface com.plexpt.chatgpt.api.Api
音频转录 Audio transcriptions
audioTranslation(File, Transcriptions) - Method in class com.plexpt.chatgpt.ChatGPT
 
audioTranslations(MultipartBody.Part, Transcriptions) - Method in interface com.plexpt.chatgpt.api.Api
音频翻译 Audio translations

B

balance() - Method in class com.plexpt.chatgpt.ChatGPT
Deprecated.
balance(String) - Static method in class com.plexpt.chatgpt.ChatGPT
Deprecated.
BaseResponse<T> - Class in com.plexpt.chatgpt.entity
 
BaseResponse() - Constructor for class com.plexpt.chatgpt.entity.BaseResponse
 
BaseResponse.Error - Class in com.plexpt.chatgpt.entity
 
bytes - Variable in class com.plexpt.chatgpt.entity.FileResponse
文件大小(以字节为单位) File size in bytes.
byteValue(BigDecimal) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 

C

castToBigDecimal(Object) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
castToBigInteger(Object) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
castToBoolean(Object) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
castToByte(Object) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
castToChar(Object) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
castToDouble(Object) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
castToFloat(Object) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
castToInt(Object) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
castToLong(Object) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
castToShort(Object) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
castToString(Object) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
chat(String) - Method in class com.plexpt.chatgpt.ChatGPT
与服务端进行对话
ChatChoice - Class in com.plexpt.chatgpt.entity.chat
 
ChatChoice() - Constructor for class com.plexpt.chatgpt.entity.chat.ChatChoice
 
chatCompletion(ChatCompletion) - Method in interface com.plexpt.chatgpt.api.Api
聊天 Chat
chatCompletion(ChatCompletion) - Method in class com.plexpt.chatgpt.ChatGPT
最新版的GPT-3.5 chat completion 更加贴近官方网站的问答模型
chatCompletion(List<Message>) - Method in class com.plexpt.chatgpt.ChatGPT
支持多个问答参数来与服务端进行对话
ChatCompletion - Class in com.plexpt.chatgpt.entity.chat
chat
ChatCompletion() - Constructor for class com.plexpt.chatgpt.entity.chat.ChatCompletion
 
ChatCompletion.Model - Interface in com.plexpt.chatgpt.entity.chat
model
ChatCompletionResponse - Class in com.plexpt.chatgpt.entity.chat
chat答案类
ChatCompletionResponse() - Constructor for class com.plexpt.chatgpt.entity.chat.ChatCompletionResponse
 
ChatContextHolder - Class in com.plexpt.chatgpt.util
 
ChatContextHolder() - Constructor for class com.plexpt.chatgpt.util.ChatContextHolder
 
ChatException - Exception in com.plexpt.chatgpt.exception
Custom exception class for chat-related errors
ChatException(String) - Constructor for exception com.plexpt.chatgpt.exception.ChatException
Constructs a new ChatException with the specified detail message.
ChatFunction - Class in com.plexpt.chatgpt.entity.chat
 
ChatFunction() - Constructor for class com.plexpt.chatgpt.entity.chat.ChatFunction
 
ChatFunction.ChatParameter - Class in com.plexpt.chatgpt.entity.chat
 
ChatGPT - Class in com.plexpt.chatgpt
open ai 客户端
ChatGPT() - Constructor for class com.plexpt.chatgpt.ChatGPT
 
ChatGPTStream - Class in com.plexpt.chatgpt
open ai 客户端
ChatGPTStream() - Constructor for class com.plexpt.chatgpt.ChatGPTStream
 
ChatParameter() - Constructor for class com.plexpt.chatgpt.entity.chat.ChatFunction.ChatParameter
 
ChatParameter() - Constructor for class com.plexpt.chatgpt.entity.chat.ChatToolFunction.ChatParameter
 
ChatTool - Class in com.plexpt.chatgpt.entity.chat
 
ChatTool() - Constructor for class com.plexpt.chatgpt.entity.chat.ChatTool
 
ChatToolFunction - Class in com.plexpt.chatgpt.entity.chat
 
ChatToolFunction() - Constructor for class com.plexpt.chatgpt.entity.chat.ChatToolFunction
 
ChatToolFunction.ChatParameter - Class in com.plexpt.chatgpt.entity.chat
 
check(String) - Static method in class com.plexpt.chatgpt.ConsoleChatGPT
 
choices - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletionResponse
 
clear() - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
clear() - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
code - Variable in class com.plexpt.chatgpt.entity.BaseResponse.Error
 
code - Variable in class com.plexpt.chatgpt.entity.images.ImagesRensponse
 
com.plexpt.chatgpt - package com.plexpt.chatgpt
 
com.plexpt.chatgpt.api - package com.plexpt.chatgpt.api
 
com.plexpt.chatgpt.entity - package com.plexpt.chatgpt.entity
 
com.plexpt.chatgpt.entity.audio - package com.plexpt.chatgpt.entity.audio
 
com.plexpt.chatgpt.entity.audio.enums - package com.plexpt.chatgpt.entity.audio.enums
 
com.plexpt.chatgpt.entity.billing - package com.plexpt.chatgpt.entity.billing
 
com.plexpt.chatgpt.entity.chat - package com.plexpt.chatgpt.entity.chat
 
com.plexpt.chatgpt.entity.embedding - package com.plexpt.chatgpt.entity.embedding
 
com.plexpt.chatgpt.entity.images - package com.plexpt.chatgpt.entity.images
 
com.plexpt.chatgpt.entity.images.enums - package com.plexpt.chatgpt.entity.images.enums
 
com.plexpt.chatgpt.exception - package com.plexpt.chatgpt.exception
 
com.plexpt.chatgpt.listener - package com.plexpt.chatgpt.listener
 
com.plexpt.chatgpt.util - package com.plexpt.chatgpt.util
 
com.plexpt.chatgpt.util.fastjson - package com.plexpt.chatgpt.util.fastjson
 
com.plexpt.chatgpt.util.fastjson.exception - package com.plexpt.chatgpt.util.fastjson.exception
 
complete(SseEmitter) - Method in class com.plexpt.chatgpt.util.SseHelper
 
completion_tokens - Variable in class com.plexpt.chatgpt.entity.chat.CompletionUseage
 
completion_tokens_details - Variable in class com.plexpt.chatgpt.entity.billing.Usage
 
completionTokens - Variable in class com.plexpt.chatgpt.entity.billing.Usage
 
CompletionTokensDetails - Class in com.plexpt.chatgpt.entity.chat
 
CompletionTokensDetails() - Constructor for class com.plexpt.chatgpt.entity.chat.CompletionTokensDetails
 
CompletionUseage - Class in com.plexpt.chatgpt.entity.chat
completion_tokens integer Number of tokens in the generated completion.
CompletionUseage() - Constructor for class com.plexpt.chatgpt.entity.chat.CompletionUseage
 
ConsoleChatGPT - Class in com.plexpt.chatgpt
open ai 客户端
ConsoleChatGPT() - Constructor for class com.plexpt.chatgpt.ConsoleChatGPT
 
ConsoleStreamListener - Class in com.plexpt.chatgpt.listener
控制台测试 Console Stream Test Listener
ConsoleStreamListener() - Constructor for class com.plexpt.chatgpt.listener.ConsoleStreamListener
 
contains(Object) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
containsAll(Collection) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
containsKey(Object) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
containsValue(Object) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
content - Variable in class com.plexpt.chatgpt.entity.chat.Message
 
context - Static variable in class com.plexpt.chatgpt.util.ChatContextHolder
 
countTextTokens(String) - Static method in class com.plexpt.chatgpt.util.TokensUtil
计算text信息的tokens
countTextTokens(String, String) - Static method in class com.plexpt.chatgpt.util.TokensUtil
计算text信息的tokens
countTokens() - Method in class com.plexpt.chatgpt.entity.chat.ChatCompletion
计算token
created - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletionResponse
 
created - Variable in class com.plexpt.chatgpt.entity.images.ImagesRensponse
 
createdAt - Variable in class com.plexpt.chatgpt.entity.FileResponse
创建时间(以秒为单位的纪元时间) The creation time in epoch seconds.
createEmbeddings(EmbeddingRequest) - Method in interface com.plexpt.chatgpt.api.Api
生成向量 Create embeddings
createEmbeddings(EmbeddingRequest) - Method in class com.plexpt.chatgpt.ChatGPT
生成向量
createEmbeddings(String, String) - Method in class com.plexpt.chatgpt.ChatGPT
生成向量
creditGrants() - Method in interface com.plexpt.chatgpt.api.Api
余额查询 Credit grants query
creditGrants() - Method in class com.plexpt.chatgpt.ChatGPT
Deprecated.
CreditGrantsResponse - Class in com.plexpt.chatgpt.entity.billing
余额查询接口返回值
CreditGrantsResponse() - Constructor for class com.plexpt.chatgpt.entity.billing.CreditGrantsResponse
 

D

data - Variable in class com.plexpt.chatgpt.entity.BaseResponse
 
data - Variable in class com.plexpt.chatgpt.entity.billing.Grants
 
data - Variable in class com.plexpt.chatgpt.entity.embedding.EmbeddingResult
A list of the calculated embeddings
data - Variable in class com.plexpt.chatgpt.entity.images.ImagesRensponse
 
Datum - Class in com.plexpt.chatgpt.entity.billing
 
Datum() - Constructor for class com.plexpt.chatgpt.entity.billing.Datum
 
DEFAULT_API_HOST - Static variable in interface com.plexpt.chatgpt.api.Api
 
deleted - Variable in class com.plexpt.chatgpt.entity.DeleteResponse
如果成功删除则为 true True if successfully deleted
deleteFile(String) - Method in interface com.plexpt.chatgpt.api.Api
删除文件 Delete file
deleteFile(String) - Method in class com.plexpt.chatgpt.ChatGPT
删除文件 Delete file
DeleteResponse - Class in com.plexpt.chatgpt.entity
删除对象时的响应 A response when deleting an object
DeleteResponse() - Constructor for class com.plexpt.chatgpt.entity.DeleteResponse
 
delta - Variable in class com.plexpt.chatgpt.entity.chat.ChatChoice
请求参数stream为true返回是delta
description - Variable in class com.plexpt.chatgpt.entity.chat.ChatFunction
 
description - Variable in class com.plexpt.chatgpt.entity.chat.ChatToolFunction
 

E

Edits - Class in com.plexpt.chatgpt.entity.images
 
Edits(String, int, String, String) - Constructor for class com.plexpt.chatgpt.entity.images.Edits
 
effectiveAt - Variable in class com.plexpt.chatgpt.entity.billing.Datum
生效时间戳
embedding - Variable in class com.plexpt.chatgpt.entity.embedding.EmbeddingData
The embedding vector
EmbeddingData - Class in com.plexpt.chatgpt.entity.embedding
向量
EmbeddingData() - Constructor for class com.plexpt.chatgpt.entity.embedding.EmbeddingData
 
EmbeddingModelEnum() - Constructor for enum com.plexpt.chatgpt.entity.embedding.EmbeddingRequest.EmbeddingModelEnum
 
EmbeddingRequest - Class in com.plexpt.chatgpt.entity.embedding
生成向量请求参数
EmbeddingRequest() - Constructor for class com.plexpt.chatgpt.entity.embedding.EmbeddingRequest
 
EmbeddingRequest.EmbeddingModelEnum - Enum in com.plexpt.chatgpt.entity.embedding
向量模型枚举
EmbeddingResult - Class in com.plexpt.chatgpt.entity.embedding
向量结果
EmbeddingResult() - Constructor for class com.plexpt.chatgpt.entity.embedding.EmbeddingResult
 
encoding - Static variable in class com.plexpt.chatgpt.util.TokensUtil
 
encoding4o - Static variable in class com.plexpt.chatgpt.util.TokensUtil
 
entrySet() - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
equals(Object) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
equals(Object) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
error - Variable in class com.plexpt.chatgpt.entity.BaseResponse
 
Error() - Constructor for class com.plexpt.chatgpt.entity.BaseResponse.Error
 
expiresAt - Variable in class com.plexpt.chatgpt.entity.billing.Datum
过期时间戳

F

filename - Variable in class com.plexpt.chatgpt.entity.FileResponse
文件名 The name of the file.
FileResponse - Class in com.plexpt.chatgpt.entity
上传到 OpenAI 的文件 A file uploaded to OpenAI
FileResponse() - Constructor for class com.plexpt.chatgpt.entity.FileResponse
 
finishReason - Variable in class com.plexpt.chatgpt.entity.chat.ChatChoice
The reason the model stopped generating tokens.
formatDate(Date) - Static method in class com.plexpt.chatgpt.util.FormatDateUtil
使用SimpleDateFormat格式化日期为yyyy-MM-dd,每次新建对象避免线程安全问题
FormatDateUtil - Class in com.plexpt.chatgpt.util
 
FormatDateUtil() - Constructor for class com.plexpt.chatgpt.util.FormatDateUtil
 
frequencyPenalty - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
-2.0 ~~ 2.0 Defaults to 0
function - Variable in class com.plexpt.chatgpt.entity.chat.ChatTool
 
function - Variable in class com.plexpt.chatgpt.entity.chat.ToolCallResult
 
FunctionCallResult - Class in com.plexpt.chatgpt.entity.chat
 
FunctionCallResult() - Constructor for class com.plexpt.chatgpt.entity.chat.FunctionCallResult
 

G

Generations - Class in com.plexpt.chatgpt.entity.images
 
Generations() - Constructor for class com.plexpt.chatgpt.entity.images.Generations
 
Generations.Model - Enum in com.plexpt.chatgpt.entity.images
 
get(String) - Static method in class com.plexpt.chatgpt.util.ChatContextHolder
获取对话历史
get(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
get(Object) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getBalance(String) - Static method in class com.plexpt.chatgpt.ConsoleChatGPT
 
getBigDecimal(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getBigDecimal(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getBigInteger(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getBigInteger(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getBoolean(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getBoolean(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getBooleanValue(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getBooleanValue(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getByte(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getByte(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getByteValue(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getByteValue(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getCause() - Method in exception com.plexpt.chatgpt.util.fastjson.exception.ParseException
 
getDouble(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getDouble(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getDoubleValue(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getDoubleValue(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getFloat(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getFloat(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getFloatValue(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getFloatValue(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getInput(String) - Static method in class com.plexpt.chatgpt.ConsoleChatGPT
 
getInteger(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getInteger(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getIntValue(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getIntValue(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getJSONArray(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getJSONArray(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getJSONObject(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getJSONObject(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getLocalizedMessage() - Method in exception com.plexpt.chatgpt.util.fastjson.exception.ParseException
 
getLong(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getLong(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getLongValue(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getLongValue(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getMessage() - Method in exception com.plexpt.chatgpt.util.fastjson.exception.ParseException
 
getModelTypeByName(String) - Static method in class com.plexpt.chatgpt.util.TokensUtil
获取modelType
getObject(int, Class<T>) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getObject(String, Class<T>) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getShort(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getShort(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getShortValue(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getShortValue(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getString(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
getString(String) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
getUrls() - Method in class com.plexpt.chatgpt.entity.images.ImagesRensponse
 
GPT4 - Static variable in interface com.plexpt.chatgpt.entity.chat.ChatCompletion.Model
GPT4.0
GPT4o - Static variable in interface com.plexpt.chatgpt.entity.chat.ChatCompletion.Model
 
GPT4oMini - Static variable in interface com.plexpt.chatgpt.entity.chat.ChatCompletion.Model
 
GPT_3_5_TURBO - Static variable in interface com.plexpt.chatgpt.entity.chat.ChatCompletion.Model
gpt-3.5-turbo
grantAmount - Variable in class com.plexpt.chatgpt.entity.billing.Datum
赠送金额:美元
grants - Variable in class com.plexpt.chatgpt.entity.billing.CreditGrantsResponse
余额明细
Grants - Class in com.plexpt.chatgpt.entity.billing
 
Grants() - Constructor for class com.plexpt.chatgpt.entity.billing.Grants
 

H

hardLimitUsd - Variable in class com.plexpt.chatgpt.entity.billing.SubscriptionData
赠送金额:美元
hashCode() - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
hashCode() - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
http(String, int) - Static method in class com.plexpt.chatgpt.util.Proxys
http 代理

I

id - Variable in class com.plexpt.chatgpt.entity.billing.Datum
 
id - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletionResponse
 
id - Variable in class com.plexpt.chatgpt.entity.chat.ToolCallResult
 
id - Variable in class com.plexpt.chatgpt.entity.DeleteResponse
对象的ID The id of the object.
id - Variable in class com.plexpt.chatgpt.entity.FileResponse
文件的唯一ID The unique id of this file.
imageEdit(File, File, Edits) - Method in class com.plexpt.chatgpt.ChatGPT
 
imageEdits(MultipartBody.Part, MultipartBody.Part, Edits) - Method in interface com.plexpt.chatgpt.api.Api
图像编辑 Image edits
imageGeneration(Generations) - Method in class com.plexpt.chatgpt.ChatGPT
 
imageGenerations(Generations) - Method in interface com.plexpt.chatgpt.api.Api
图像生成 Image generations
ImagesRensponse - Class in com.plexpt.chatgpt.entity.images
 
ImagesRensponse() - Constructor for class com.plexpt.chatgpt.entity.images.ImagesRensponse
 
imageVariation(File, Variations) - Method in class com.plexpt.chatgpt.ChatGPT
 
imageVariations(MultipartBody.Part, Variations) - Method in interface com.plexpt.chatgpt.api.Api
图像变体 Image variations
include_usage - Variable in class com.plexpt.chatgpt.entity.chat.StreamOption
 
index - Variable in class com.plexpt.chatgpt.entity.chat.ChatChoice
 
index - Variable in class com.plexpt.chatgpt.entity.chat.ToolCallResult
 
index - Variable in class com.plexpt.chatgpt.entity.embedding.EmbeddingData
The position of this embedding in the list
indexOf(Object) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
init() - Method in class com.plexpt.chatgpt.ChatGPT
初始化:与服务端建立连接,成功后可直接与服务端进行对话
init() - Method in class com.plexpt.chatgpt.ChatGPTStream
初始化
initCause(Throwable) - Method in exception com.plexpt.chatgpt.util.fastjson.exception.ParseException
 
input - Variable in class com.plexpt.chatgpt.entity.audio.SpeechRequest
输入文本 Input text The text to generate audio for.
input - Variable in class com.plexpt.chatgpt.entity.embedding.EmbeddingRequest
需要转成向量的文本
intValue(BigDecimal) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
isBlank(String) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
 
isEmpty() - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
isEmpty() - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
isJson(String) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
是否为JSON字符串,首尾都为大括号或中括号判定为JSON字符串
isJsonArray(String) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
是否为JSONObject字符串,首尾都为大括号或中括号判定为JSON字符串
isJsonObj(String) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
是否为JSONObject字符串,首尾都为大括号或中括号判定为JSON字符串
isNumber(String) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
isWrap(String, char, char) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
 
iterator() - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 

J

JSON - Class in com.plexpt.chatgpt.util.fastjson
 
JSON() - Constructor for class com.plexpt.chatgpt.util.fastjson.JSON
 
JSONArray - Class in com.plexpt.chatgpt.util.fastjson
 
JSONArray(List<Object>) - Constructor for class com.plexpt.chatgpt.util.fastjson.JSONArray
 
JSONArray(int) - Constructor for class com.plexpt.chatgpt.util.fastjson.JSONArray
 
JSONArray() - Constructor for class com.plexpt.chatgpt.util.fastjson.JSONArray
 
JSONObject - Class in com.plexpt.chatgpt.util.fastjson
 
JSONObject(Map<String, Object>) - Constructor for class com.plexpt.chatgpt.util.fastjson.JSONObject
 
JSONObject() - Constructor for class com.plexpt.chatgpt.util.fastjson.JSONObject
 
JSONObject(int) - Constructor for class com.plexpt.chatgpt.util.fastjson.JSONObject
 

K

keySet() - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 

L

lastIndexOf(Object) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
lastMessage - Variable in class com.plexpt.chatgpt.listener.AbstractStreamListener
 
list - Variable in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
listConvertToJsonArray(List) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
 
listFiles() - Method in interface com.plexpt.chatgpt.api.Api
列出文件 List files
listFiles() - Method in class com.plexpt.chatgpt.ChatGPT
列出文件 List files
listIterator() - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
listIterator(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
logitBias - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
Optional Defaults to null
logprobs - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
boolean or null
logprobs - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletionResponse
 
longExtractValue(Number) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
longValue(BigDecimal) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 

M

main(String[]) - Static method in class com.plexpt.chatgpt.ConsoleChatGPT
 
main(String[]) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
 
map - Variable in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
mapToJsonObject(Map<String, Object>) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
jackson parse出来的是map和list,所以把map和list转换为jsonObject和jsonArray
maxTokens - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
3.5 最大支持4096 4.0 最大32k
message - Variable in class com.plexpt.chatgpt.entity.BaseResponse.Error
 
message - Variable in class com.plexpt.chatgpt.entity.chat.ChatChoice
请求参数stream为false返回是message
Message - Class in com.plexpt.chatgpt.entity.chat
 
Message(String, String) - Constructor for class com.plexpt.chatgpt.entity.chat.Message
 
Message.Role - Enum in com.plexpt.chatgpt.entity.chat
 
messages - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
 
model - Variable in class com.plexpt.chatgpt.entity.audio.SpeechRequest
模型 Model https://platform.openai.com/docs/models/tts One of the available TTS models: tts-1 or tts-1-hd
model - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
 
model - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletionResponse
 
model - Variable in class com.plexpt.chatgpt.entity.embedding.EmbeddingRequest
向量模型
model - Variable in class com.plexpt.chatgpt.entity.embedding.EmbeddingResult
The GPTmodel used for generating embeddings
model - Variable in class com.plexpt.chatgpt.entity.images.Generations
Optional Defaults to dall-e-2
The model to use for image generation.
Model() - Constructor for enum com.plexpt.chatgpt.entity.images.Generations.Model
 
modelName - Variable in enum com.plexpt.chatgpt.entity.embedding.EmbeddingRequest.EmbeddingModelEnum
modelName
msg - Variable in class com.plexpt.chatgpt.entity.images.ImagesRensponse
 

N

n - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
结果数。
n - Variable in class com.plexpt.chatgpt.entity.images.Generations
 
name - Variable in class com.plexpt.chatgpt.entity.chat.ChatFunction
 
name - Variable in class com.plexpt.chatgpt.entity.chat.ChatToolFunction
Required The name of the function to be called.
name - Variable in class com.plexpt.chatgpt.entity.chat.FunctionCallResult
 
name - Variable in class com.plexpt.chatgpt.entity.chat.Message
 
name - Variable in enum com.plexpt.chatgpt.entity.images.Generations.Model
 
num(char, char) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
num(char, char, char, char) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
num(char, char, char, char, char, char, char, char, char) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
NUMBER_WITH_TRAILING_ZEROS_PATTERN - Static variable in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 

O

obj2StringPretty(T) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
对象转Json格式字符串(格式化的Json字符串)
object - Variable in class com.plexpt.chatgpt.entity.BaseResponse
 
object - Variable in class com.plexpt.chatgpt.entity.billing.CreditGrantsResponse
 
object - Variable in class com.plexpt.chatgpt.entity.billing.Datum
 
object - Variable in class com.plexpt.chatgpt.entity.billing.Grants
 
object - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletionResponse
 
object - Variable in class com.plexpt.chatgpt.entity.DeleteResponse
删除的对象类型,例如 "file" 或 "model" The type of object deleted, for example "file" or "model"
object - Variable in class com.plexpt.chatgpt.entity.embedding.EmbeddingData
The type of object returned, should be "embedding"
object - Variable in class com.plexpt.chatgpt.entity.embedding.EmbeddingResult
The type of object returned, should be "list"
object - Variable in class com.plexpt.chatgpt.entity.FileResponse
返回的对象类型,应为 "file" The type of object returned, should be "file".
objectMapper - Static variable in class com.plexpt.chatgpt.util.fastjson.JSON
 
of(String, String) - Static method in class com.plexpt.chatgpt.entity.audio.Transcriptions
 
of(String) - Static method in class com.plexpt.chatgpt.entity.chat.Message
 
ofAssistant(String) - Static method in class com.plexpt.chatgpt.entity.chat.Message
 
ofB64_JSON(String, int, String) - Static method in class com.plexpt.chatgpt.entity.images.Edits
 
ofB64_JSON(String, int, String) - Static method in class com.plexpt.chatgpt.entity.images.Generations
 
ofB64_JSON(int, String) - Static method in class com.plexpt.chatgpt.entity.images.Variations
 
ofFunction(String) - Static method in class com.plexpt.chatgpt.entity.chat.Message
 
ofSystem(String) - Static method in class com.plexpt.chatgpt.entity.chat.Message
 
ofURL(String, int, String) - Static method in class com.plexpt.chatgpt.entity.images.Edits
 
ofURL(String, int, String) - Static method in class com.plexpt.chatgpt.entity.images.Generations
 
ofURL(int, String) - Static method in class com.plexpt.chatgpt.entity.images.Variations
 
okHttpClient - Variable in class com.plexpt.chatgpt.ChatGPT
 
okHttpClient - Variable in class com.plexpt.chatgpt.ChatGPTStream
 
onClosed(EventSource) - Method in class com.plexpt.chatgpt.listener.AbstractStreamListener
 
onComplete - Variable in class com.plexpt.chatgpt.listener.AbstractStreamListener
Called when all new message are received.
onError(Throwable, String) - Method in class com.plexpt.chatgpt.listener.AbstractStreamListener
Called when an error occurs.
onError(Throwable, String) - Method in class com.plexpt.chatgpt.listener.ConsoleStreamListener
 
onError(Throwable, String) - Method in class com.plexpt.chatgpt.listener.SseStreamListener
 
onEvent(EventSource, String, String, String) - Method in class com.plexpt.chatgpt.listener.AbstractStreamListener
 
onFailure(EventSource, Throwable, Response) - Method in class com.plexpt.chatgpt.listener.AbstractStreamListener
 
onMsg(String) - Method in class com.plexpt.chatgpt.listener.AbstractStreamListener
Called when a new message is received.
onMsg(String) - Method in class com.plexpt.chatgpt.listener.ConsoleStreamListener
 
onMsg(String) - Method in class com.plexpt.chatgpt.listener.SseStreamListener
 
onOpen(EventSource, Response) - Method in class com.plexpt.chatgpt.listener.AbstractStreamListener
 

P

parallelToolCalls - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
 
param - Variable in class com.plexpt.chatgpt.entity.BaseResponse.Error
 
parameters - Variable in class com.plexpt.chatgpt.entity.chat.ChatFunction
 
parameters - Variable in class com.plexpt.chatgpt.entity.chat.ChatToolFunction
 
parse(String) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
 
parseArray(String) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
 
parseArray(String, Class<T>) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
 
ParseException - Exception in com.plexpt.chatgpt.util.fastjson.exception
 
ParseException(Exception) - Constructor for exception com.plexpt.chatgpt.util.fastjson.exception.ParseException
 
ParseException(String) - Constructor for exception com.plexpt.chatgpt.util.fastjson.exception.ParseException
 
parseJSONArray(String, TypeReference<T>) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
 
parseJSONObject(String) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
 
parseJSONObject(Object) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
 
parseObject(String) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
 
parseObject(String, Class<T>) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
 
presencePenalty - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
Optional Defaults to 0 Number between -2.0 and 2.0.
printStackTrace() - Method in exception com.plexpt.chatgpt.util.fastjson.exception.ParseException
 
printStackTrace(PrintStream) - Method in exception com.plexpt.chatgpt.util.fastjson.exception.ParseException
 
printStackTrace(PrintWriter) - Method in exception com.plexpt.chatgpt.util.fastjson.exception.ParseException
 
processingException - Variable in exception com.plexpt.chatgpt.util.fastjson.exception.ParseException
 
prompt - Variable in class com.plexpt.chatgpt.entity.images.Generations
 
prompt_tokens - Variable in class com.plexpt.chatgpt.entity.chat.CompletionUseage
 
promptTokens - Variable in class com.plexpt.chatgpt.entity.billing.Usage
 
properties - Variable in class com.plexpt.chatgpt.entity.chat.ChatFunction.ChatParameter
 
properties - Variable in class com.plexpt.chatgpt.entity.chat.ChatToolFunction.ChatParameter
 
proxy - Variable in class com.plexpt.chatgpt.ChatGPT
okhttp 代理
proxy - Variable in class com.plexpt.chatgpt.ChatGPTStream
网络代理
proxy - Static variable in class com.plexpt.chatgpt.ConsoleChatGPT
 
Proxys - Class in com.plexpt.chatgpt.util
 
Proxys() - Constructor for class com.plexpt.chatgpt.util.Proxys
 
purpose - Variable in class com.plexpt.chatgpt.entity.FileResponse
文件用途的描述 Description of the file's purpose.
put(String, Object) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
putAll(Map<? extends String, ?>) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 

Q

quality - Variable in class com.plexpt.chatgpt.entity.images.Generations
Optional Defaults to standard
dall-e-3可以使用hd

R

reasoning_tokens - Variable in class com.plexpt.chatgpt.entity.chat.CompletionTokensDetails
 
registry - Static variable in class com.plexpt.chatgpt.util.TokensUtil
 
remove(String) - Static method in class com.plexpt.chatgpt.util.ChatContextHolder
清除对话
remove(Object) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
remove(int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
remove(Object) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
removeAll(Collection) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
replaceAll(UnaryOperator) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
required - Variable in class com.plexpt.chatgpt.entity.chat.ChatFunction.ChatParameter
 
required - Variable in class com.plexpt.chatgpt.entity.chat.ChatToolFunction.ChatParameter
 
response_format - Variable in class com.plexpt.chatgpt.entity.audio.SpeechRequest
响应格式 Response format The format to audio in.
response_format - Variable in class com.plexpt.chatgpt.entity.images.Generations
 
responseFormat - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
返回格式 当前只有gpt-3.5-turbo-1106和gpt-4-1106-preview 支持json_object格式返回
ResponseFormat - Class in com.plexpt.chatgpt.entity.chat
 
ResponseFormat() - Constructor for class com.plexpt.chatgpt.entity.chat.ResponseFormat
 
ResponseFormat - Enum in com.plexpt.chatgpt.entity.images.enums
 
ResponseFormat() - Constructor for enum com.plexpt.chatgpt.entity.images.enums.ResponseFormat
 
ResponseFormat.Type - Enum in com.plexpt.chatgpt.entity.chat
 
retainAll(Collection) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
retrieveFile(String) - Method in interface com.plexpt.chatgpt.api.Api
检索文件 Retrieve file
retrieveFile(String) - Method in class com.plexpt.chatgpt.ChatGPT
检索文件 Retrieve file
retrieveFileContent(String) - Method in interface com.plexpt.chatgpt.api.Api
检索文件内容 Retrieve file content
retrieveFileContent(String) - Method in class com.plexpt.chatgpt.ChatGPT
检索文件内容 Retrieve file content
role - Variable in class com.plexpt.chatgpt.entity.chat.Message
目前支持三种角色参考官网,进行情景输入:https://platform.openai.com/docs/guides/chat/introduction
Role() - Constructor for enum com.plexpt.chatgpt.entity.chat.Message.Role
 

S

seed - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
 
send(SseEmitter, Object) - Method in class com.plexpt.chatgpt.util.SseHelper
 
serviceTier - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
Specifies the latency tier to use for processing the request.
set(int, Object) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
shortValue(BigDecimal) - Static method in class com.plexpt.chatgpt.util.fastjson.TypeUtils
 
size - Variable in class com.plexpt.chatgpt.entity.images.Generations
The size of the generated images.
size() - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
size() - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
socks5(String, int) - Static method in class com.plexpt.chatgpt.util.Proxys
socks5 代理
sort(Comparator) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
SpeechRequest - Class in com.plexpt.chatgpt.entity.audio
语音请求对象 Speech request object
SpeechRequest() - Constructor for class com.plexpt.chatgpt.entity.audio.SpeechRequest
 
speed - Variable in class com.plexpt.chatgpt.entity.audio.SpeechRequest
速度 Speed The speed of the generated audio.
spliterator() - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
sseEmitter - Variable in class com.plexpt.chatgpt.listener.SseStreamListener
 
SseHelper - Class in com.plexpt.chatgpt.util
 
SseHelper() - Constructor for class com.plexpt.chatgpt.util.SseHelper
 
SseStreamListener - Class in com.plexpt.chatgpt.listener
sse
SseStreamListener() - Constructor for class com.plexpt.chatgpt.listener.SseStreamListener
 
STANDARD_FORMAT - Static variable in class com.plexpt.chatgpt.util.fastjson.JSON
 
status - Variable in class com.plexpt.chatgpt.entity.FileResponse
文件的当前状态,可以是 uploaded, processed, pending, error, deleting 或 deleted The current status of the file, which can be either uploaded, processed, pending, error, deleting or deleted.
statusDetails - Variable in class com.plexpt.chatgpt.entity.FileResponse
文件状态的附加详细信息 如果文件处于错误状态,这将包括描述错误的消息 Additional details about the status of the file.
stop - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
停用词
stream - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
是否流式输出.
streamChatCompletion(ChatCompletion, EventSourceListener) - Method in class com.plexpt.chatgpt.ChatGPTStream
流式输出
streamChatCompletion(List<Message>, EventSourceListener) - Method in class com.plexpt.chatgpt.ChatGPTStream
流式输出
StreamOption - Class in com.plexpt.chatgpt.entity.chat
 
StreamOption() - Constructor for class com.plexpt.chatgpt.entity.chat.StreamOption
 
streamOptions - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
 
style - Variable in class com.plexpt.chatgpt.entity.images.Generations
Optional Defaults to vivid
The style of the generated images.
subList(int, int) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
subscription() - Method in interface com.plexpt.chatgpt.api.Api
订阅查询 Subscription query
SubscriptionData - Class in com.plexpt.chatgpt.entity.billing
 
SubscriptionData() - Constructor for class com.plexpt.chatgpt.entity.billing.SubscriptionData
 
systemFingerprint - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletionResponse
 

T

temperature - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
使用什么取样温度,0到2之间。越高越奔放。越低越保守。
text - Variable in class com.plexpt.chatgpt.entity.audio.AudioResponse
 
timeout - Variable in class com.plexpt.chatgpt.ChatGPT
超时 默认300
timeout - Variable in class com.plexpt.chatgpt.ChatGPTStream
连接超时
toArray() - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
toArray(Object[]) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
toJavaList(Class<T>) - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
toJavaObject(Class<T>) - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
toJSONString(Object) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
 
toJSONString(Object, boolean) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
 
toJSONString(JsonNode) - Static method in class com.plexpt.chatgpt.util.fastjson.JSON
 
toJSONString() - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
toJSONString() - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
tokens(List<Message>, String) - Static method in class com.plexpt.chatgpt.util.TokensUtil
通过模型名称计算messages获取编码数组 参考官方的处理逻辑: https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb
tokens(String, List<Message>) - Static method in class com.plexpt.chatgpt.util.TokensUtil
计算tokens
TokensUtil - Class in com.plexpt.chatgpt.util
 
TokensUtil() - Constructor for class com.plexpt.chatgpt.util.TokensUtil
 
ToolCallResult - Class in com.plexpt.chatgpt.entity.chat
 
ToolCallResult() - Constructor for class com.plexpt.chatgpt.entity.chat.ToolCallResult
 
toolCalls - Variable in class com.plexpt.chatgpt.entity.chat.Message
 
toolChoice - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
 
tools - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
 
toPlainString() - Method in class com.plexpt.chatgpt.entity.chat.ChatCompletionResponse
 
toPlainStringStream() - Method in class com.plexpt.chatgpt.entity.chat.ChatCompletionResponse
 
topLogprobs - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
integer or null
topP - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
0-1 建议0.9 不要同时改这个和temperature
toString() - Method in exception com.plexpt.chatgpt.util.fastjson.exception.ParseException
 
toString() - Method in class com.plexpt.chatgpt.util.fastjson.JSONArray
 
toString() - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
total_tokens - Variable in class com.plexpt.chatgpt.entity.chat.CompletionUseage
 
totalAvailable - Variable in class com.plexpt.chatgpt.entity.billing.CreditGrantsResponse
总剩余金额:美元
totalGranted - Variable in class com.plexpt.chatgpt.entity.billing.CreditGrantsResponse
总金额:美元
totalTokens - Variable in class com.plexpt.chatgpt.entity.billing.Usage
 
totalUsage - Variable in class com.plexpt.chatgpt.entity.billing.UseageResponse
总使用金额:美元
totalUsed - Variable in class com.plexpt.chatgpt.entity.billing.CreditGrantsResponse
总使用金额:美元
Transcriptions - Class in com.plexpt.chatgpt.entity.audio
 
Transcriptions(String, String) - Constructor for class com.plexpt.chatgpt.entity.audio.Transcriptions
 
type - Variable in class com.plexpt.chatgpt.entity.BaseResponse.Error
 
type - Variable in class com.plexpt.chatgpt.entity.chat.ChatFunction.ChatParameter
 
type - Variable in class com.plexpt.chatgpt.entity.chat.ChatTool
The name of the tool being called, only function supported for now.
type - Variable in class com.plexpt.chatgpt.entity.chat.ChatToolFunction.ChatParameter
 
type - Variable in class com.plexpt.chatgpt.entity.chat.ResponseFormat
 
Type() - Constructor for enum com.plexpt.chatgpt.entity.chat.ResponseFormat.Type
 
type - Variable in class com.plexpt.chatgpt.entity.chat.ToolCallResult
 
TypeUtils - Class in com.plexpt.chatgpt.util.fastjson
 
TypeUtils() - Constructor for class com.plexpt.chatgpt.util.fastjson.TypeUtils
 

U

uploadFile(RequestBody, MultipartBody.Part) - Method in interface com.plexpt.chatgpt.api.Api
上传文件 Upload file
uploadFile(String, MultipartBody.Part) - Method in class com.plexpt.chatgpt.ChatGPT
上传文件 Upload file
usage(String, String) - Method in interface com.plexpt.chatgpt.api.Api
使用情况查询 Usage query
Usage - Class in com.plexpt.chatgpt.entity.billing
 
Usage() - Constructor for class com.plexpt.chatgpt.entity.billing.Usage
 
usage - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletionResponse
 
usage - Variable in class com.plexpt.chatgpt.entity.embedding.EmbeddingResult
The API usage for this request
UseageResponse - Class in com.plexpt.chatgpt.entity.billing
余额查询接口返回值
UseageResponse() - Constructor for class com.plexpt.chatgpt.entity.billing.UseageResponse
 
usedAmount - Variable in class com.plexpt.chatgpt.entity.billing.Datum
使用金额:美元
user - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
用户唯一值,确保接口不被重复调用
user - Variable in class com.plexpt.chatgpt.entity.embedding.EmbeddingRequest
代表最终用户的唯一标识符,这将有助于 OpenAI 监控和检测滥用行为

V

value - Variable in enum com.plexpt.chatgpt.entity.audio.enums.AudioModel
 
value - Variable in enum com.plexpt.chatgpt.entity.chat.Message.Role
 
value - Variable in enum com.plexpt.chatgpt.entity.chat.ResponseFormat.Type
 
value - Variable in enum com.plexpt.chatgpt.entity.images.enums.ResponseFormat
 
valueOf(String) - Static method in enum com.plexpt.chatgpt.entity.audio.enums.AudioModel
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.plexpt.chatgpt.entity.chat.Message.Role
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.plexpt.chatgpt.entity.chat.ResponseFormat.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.plexpt.chatgpt.entity.embedding.EmbeddingRequest.EmbeddingModelEnum
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.plexpt.chatgpt.entity.images.enums.ResponseFormat
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.plexpt.chatgpt.entity.images.Generations.Model
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.plexpt.chatgpt.entity.audio.enums.AudioModel
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.plexpt.chatgpt.entity.chat.Message.Role
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.plexpt.chatgpt.entity.chat.ResponseFormat.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.plexpt.chatgpt.entity.embedding.EmbeddingRequest.EmbeddingModelEnum
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.plexpt.chatgpt.entity.images.enums.ResponseFormat
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.plexpt.chatgpt.entity.images.Generations.Model
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Method in class com.plexpt.chatgpt.util.fastjson.JSONObject
 
Variations - Class in com.plexpt.chatgpt.entity.images
 
Variations(int, String, String) - Constructor for class com.plexpt.chatgpt.entity.images.Variations
 
voice - Variable in class com.plexpt.chatgpt.entity.audio.SpeechRequest
声音 Voice The voice to use when generating the audio.
A B C D E F G H I J K L M N O P Q R S T U V 
Skip navigation links

Copyright © 2024. All rights reserved.