A B C D E F G H I J K L M N O P R S T U V W 
All Classes All Packages

A

AAC - com.unfbx.chatgpt.entity.Tts.TtsFormat
 
ADA - com.unfbx.chatgpt.entity.fineTune.FineTune.Model
 
ALLOY - com.unfbx.chatgpt.entity.Tts.TtsVoice
 
API_KEYS_NOT_NUL - com.unfbx.chatgpt.exception.CommonError
 
apiHost(String) - Method in class com.unfbx.chatgpt.OpenAiClient.Builder
 
apiHost(String) - Method in class com.unfbx.chatgpt.OpenAiStreamClient.Builder
 
apiKey(List<String>) - Method in class com.unfbx.chatgpt.OpenAiClient.Builder
 
apiKey(List<String>) - Method in class com.unfbx.chatgpt.OpenAiStreamClient.Builder
 
apply(List<String>) - Method in class com.unfbx.chatgpt.function.KeyRandomStrategy
 
apply(T) - Method in interface com.unfbx.chatgpt.function.KeyStrategyFunction
Applies this function to the given argument.
Arg() - Constructor for class com.unfbx.chatgpt.plugin.PluginAbstract.Arg
 
ASSISTANT - com.unfbx.chatgpt.entity.chat.BaseMessage.Role
 
auth(String, Request) - Method in class com.unfbx.chatgpt.interceptor.DynamicKeyOpenAiAuthInterceptor
 
auth(String, Request) - Method in class com.unfbx.chatgpt.interceptor.OpenAiAuthInterceptor
默认的鉴权处理方法
authInterceptor(OpenAiAuthInterceptor) - Method in class com.unfbx.chatgpt.OpenAiClient.Builder
 
authInterceptor(OpenAiAuthInterceptor) - Method in class com.unfbx.chatgpt.OpenAiStreamClient.Builder
 
AUTO - com.unfbx.chatgpt.entity.chat.tool.ToolChoice.Choice
 

B

B64_JSON - com.unfbx.chatgpt.entity.images.ResponseFormat
 
BABBAGE - com.unfbx.chatgpt.entity.fineTune.FineTune.Model
 
BABBAGE_002 - com.unfbx.chatgpt.entity.fineTune.job.FineTuneJob.Model
 
BASE64 - com.unfbx.chatgpt.entity.embeddings.Embedding.EncodingFormat
 
BaseChatCompletion - Class in com.unfbx.chatgpt.entity.chat
描述: chat模型基础类
BaseChatCompletion() - Constructor for class com.unfbx.chatgpt.entity.chat.BaseChatCompletion
 
BaseChatCompletion.Model - Enum in com.unfbx.chatgpt.entity.chat
最新模型参考官方文档: 官方稳定模型列表
BaseException - Exception in com.unfbx.chatgpt.exception
描述: 异常
BaseException() - Constructor for exception com.unfbx.chatgpt.exception.BaseException
 
BaseException(IError) - Constructor for exception com.unfbx.chatgpt.exception.BaseException
 
BaseException(String) - Constructor for exception com.unfbx.chatgpt.exception.BaseException
 
BaseMessage - Class in com.unfbx.chatgpt.entity.chat
描述:
BaseMessage() - Constructor for class com.unfbx.chatgpt.entity.chat.BaseMessage
 
BaseMessage(String, String, FunctionCall) - Constructor for class com.unfbx.chatgpt.entity.chat.BaseMessage
构造函数
BaseMessage.Role - Enum in com.unfbx.chatgpt.entity.chat
 
billingUsage(LocalDate, LocalDate) - Method in class com.unfbx.chatgpt.OpenAiClient
账户调用接口消耗金额信息查询 最多查询100天
billingUsage(LocalDate, LocalDate) - Method in class com.unfbx.chatgpt.OpenAiStreamClient
账户调用接口消耗金额信息查询 最多查询100天
billingUsage(LocalDate, LocalDate) - Method in interface com.unfbx.chatgpt.OpenAiApi
账户调用接口消耗金额信息查询 totalUsage = 账户总使用金额(美分)
BillingUsage - Class in com.unfbx.chatgpt.entity.billing
描述:金额消耗信息
BillingUsage() - Constructor for class com.unfbx.chatgpt.entity.billing.BillingUsage
 
build() - Method in class com.unfbx.chatgpt.entity.chat.Message.Builder
 
build() - Method in class com.unfbx.chatgpt.entity.chat.MessagePicture.Builder
 
build() - Method in class com.unfbx.chatgpt.OpenAiClient.Builder
 
build() - Method in class com.unfbx.chatgpt.OpenAiStreamClient.Builder
 
builder() - Static method in class com.unfbx.chatgpt.entity.chat.Message
 
builder() - Static method in class com.unfbx.chatgpt.entity.chat.MessagePicture
 
builder() - Static method in class com.unfbx.chatgpt.OpenAiClient
构造器
builder() - Static method in class com.unfbx.chatgpt.OpenAiStreamClient
构造
Builder() - Constructor for class com.unfbx.chatgpt.entity.chat.Message.Builder
 
Builder() - Constructor for class com.unfbx.chatgpt.entity.chat.MessagePicture.Builder
 
Builder() - Constructor for class com.unfbx.chatgpt.OpenAiClient.Builder
 
Builder() - Constructor for class com.unfbx.chatgpt.OpenAiStreamClient.Builder
 

C

cancelFineTune(String) - Method in interface com.unfbx.chatgpt.OpenAiApi
Deprecated.
cancelFineTune(String) - Method in class com.unfbx.chatgpt.OpenAiClient
Deprecated.
cancelFineTuneJob(String) - Method in interface com.unfbx.chatgpt.OpenAiApi
取消微调job
cancelFineTuneJob(String) - Method in class com.unfbx.chatgpt.OpenAiClient
取消微调job
Categories - Class in com.unfbx.chatgpt.entity.moderations
描述:
Categories() - Constructor for class com.unfbx.chatgpt.entity.moderations.Categories
 
CategoryScores - Class in com.unfbx.chatgpt.entity.moderations
描述:
CategoryScores() - Constructor for class com.unfbx.chatgpt.entity.moderations.CategoryScores
 
ChatChoice - Class in com.unfbx.chatgpt.entity.chat
描述:
ChatChoice() - Constructor for class com.unfbx.chatgpt.entity.chat.ChatChoice
 
chatCompletion(ChatCompletion) - Method in interface com.unfbx.chatgpt.OpenAiApi
最新版的GPT-3.5 chat completion 更加贴近官方网站的问答模型
chatCompletion(List<Message>) - Method in class com.unfbx.chatgpt.OpenAiClient
简易版(不支持图片输入)
chatCompletion(T) - Method in class com.unfbx.chatgpt.OpenAiClient
最新版的GPT-3.5 chat completion 更加贴近官方网站的问答模型
ChatCompletion - Class in com.unfbx.chatgpt.entity.chat
描述: chat模型参数
ChatCompletion() - Constructor for class com.unfbx.chatgpt.entity.chat.ChatCompletion
 
ChatCompletionResponse - Class in com.unfbx.chatgpt.entity.chat
描述: chat答案类
ChatCompletionResponse() - Constructor for class com.unfbx.chatgpt.entity.chat.ChatCompletionResponse
 
chatCompletionWithPicture(ChatCompletionWithPicture) - Method in interface com.unfbx.chatgpt.OpenAiApi
最新版的GPT-4 chat completion 支持图片输入
ChatCompletionWithPicture - Class in com.unfbx.chatgpt.entity.chat
描述: chat模型附带图片的参数
ChatCompletionWithPicture() - Constructor for class com.unfbx.chatgpt.entity.chat.ChatCompletionWithPicture
 
chatCompletionWithPlugin(ChatCompletion, PluginAbstract<R, T>) - Method in class com.unfbx.chatgpt.OpenAiClient
插件问答简易版 默认取messages最后一个元素构建插件对话 默认模型:ChatCompletion.Model.GPT_3_5_TURBO_16K_0613
chatCompletionWithPlugin(List<Message>, PluginAbstract<R, T>) - Method in class com.unfbx.chatgpt.OpenAiClient
插件问答简易版 默认取messages最后一个元素构建插件对话 默认模型:ChatCompletion.Model.GPT_3_5_TURBO_16K_0613
chatCompletionWithPlugin(List<Message>, String, PluginAbstract<R, T>) - Method in class com.unfbx.chatgpt.OpenAiClient
插件问答简易版 默认取messages最后一个元素构建插件对话
ChatGPTUrl - Enum in com.unfbx.chatgpt.config
描述: api地址
Choice - Class in com.unfbx.chatgpt.entity.common
描述:
Choice() - Constructor for class com.unfbx.chatgpt.entity.common.Choice
 
code() - Method in enum com.unfbx.chatgpt.exception.CommonError
 
code() - Method in interface com.unfbx.chatgpt.exception.IError
 
CODE_DAVINCI_EDIT_001 - com.unfbx.chatgpt.entity.edits.Edit.Model
Deprecated.
 
com.unfbx.chatgpt - package com.unfbx.chatgpt
 
com.unfbx.chatgpt.config - package com.unfbx.chatgpt.config
 
com.unfbx.chatgpt.constant - package com.unfbx.chatgpt.constant
 
com.unfbx.chatgpt.entity.billing - package com.unfbx.chatgpt.entity.billing
 
com.unfbx.chatgpt.entity.chat - package com.unfbx.chatgpt.entity.chat
 
com.unfbx.chatgpt.entity.chat.tool - package com.unfbx.chatgpt.entity.chat.tool
 
com.unfbx.chatgpt.entity.common - package com.unfbx.chatgpt.entity.common
 
com.unfbx.chatgpt.entity.completions - package com.unfbx.chatgpt.entity.completions
 
com.unfbx.chatgpt.entity.edits - package com.unfbx.chatgpt.entity.edits
 
com.unfbx.chatgpt.entity.embeddings - package com.unfbx.chatgpt.entity.embeddings
 
com.unfbx.chatgpt.entity.engines - package com.unfbx.chatgpt.entity.engines
 
com.unfbx.chatgpt.entity.files - package com.unfbx.chatgpt.entity.files
 
com.unfbx.chatgpt.entity.fineTune - package com.unfbx.chatgpt.entity.fineTune
 
com.unfbx.chatgpt.entity.fineTune.job - package com.unfbx.chatgpt.entity.fineTune.job
 
com.unfbx.chatgpt.entity.images - package com.unfbx.chatgpt.entity.images
 
com.unfbx.chatgpt.entity.models - package com.unfbx.chatgpt.entity.models
 
com.unfbx.chatgpt.entity.moderations - package com.unfbx.chatgpt.entity.moderations
 
com.unfbx.chatgpt.entity.Tts - package com.unfbx.chatgpt.entity.Tts
 
com.unfbx.chatgpt.entity.whisper - package com.unfbx.chatgpt.entity.whisper
 
com.unfbx.chatgpt.exception - package com.unfbx.chatgpt.exception
 
com.unfbx.chatgpt.function - package com.unfbx.chatgpt.function
 
com.unfbx.chatgpt.interceptor - package com.unfbx.chatgpt.interceptor
 
com.unfbx.chatgpt.plugin - package com.unfbx.chatgpt.plugin
 
com.unfbx.chatgpt.sse - package com.unfbx.chatgpt.sse
 
com.unfbx.chatgpt.utils - package com.unfbx.chatgpt.utils
 
CommonError - Enum in com.unfbx.chatgpt.exception
描述: 错误
Completion - Class in com.unfbx.chatgpt.entity.completions
描述: 问题类
Completion() - Constructor for class com.unfbx.chatgpt.entity.completions.Completion
 
Completion.Model - Enum in com.unfbx.chatgpt.entity.completions
 
CompletionResponse - Class in com.unfbx.chatgpt.entity.completions
描述: 答案类
CompletionResponse() - Constructor for class com.unfbx.chatgpt.entity.completions.CompletionResponse
 
completions(Completion) - Method in interface com.unfbx.chatgpt.OpenAiApi
文本问答 Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of alternative tokens at each position.
completions(Completion) - Method in class com.unfbx.chatgpt.OpenAiClient
问答接口
completions(String) - Method in class com.unfbx.chatgpt.OpenAiClient
问答接口-简易版
COMPLETIONS - com.unfbx.chatgpt.config.ChatGPTUrl
 
ConsoleEventSourceListener - Class in com.unfbx.chatgpt.sse
描述: sse
ConsoleEventSourceListener() - Constructor for class com.unfbx.chatgpt.sse.ConsoleEventSourceListener
 
content(String) - Method in class com.unfbx.chatgpt.entity.chat.Message.Builder
 
content(List<Content>) - Method in class com.unfbx.chatgpt.entity.chat.MessagePicture.Builder
 
content(T) - Method in class com.unfbx.chatgpt.plugin.PluginAbstract
 
Content - Class in com.unfbx.chatgpt.entity.chat
描述:
Content() - Constructor for class com.unfbx.chatgpt.entity.chat.Content
 
Content.Type - Enum in com.unfbx.chatgpt.entity.chat
生成图片风格
creditGrants() - Method in interface com.unfbx.chatgpt.OpenAiApi
Deprecated.
creditGrants() - Method in class com.unfbx.chatgpt.OpenAiClient
Deprecated.
creditGrants() - Method in class com.unfbx.chatgpt.OpenAiStreamClient
Deprecated.
CreditGrantsResponse - Class in com.unfbx.chatgpt.entity.billing
描述:余额查询接口返回值
CreditGrantsResponse() - Constructor for class com.unfbx.chatgpt.entity.billing.CreditGrantsResponse
 
CURIE - com.unfbx.chatgpt.entity.fineTune.FineTune.Model
 

D

DailyCost - Class in com.unfbx.chatgpt.entity.billing
描述:金额消耗列表
DailyCost() - Constructor for class com.unfbx.chatgpt.entity.billing.DailyCost
 
DALL_E_2 - com.unfbx.chatgpt.entity.images.Image.Model
 
DALL_E_3 - com.unfbx.chatgpt.entity.images.Image.Model
 
Datum - Class in com.unfbx.chatgpt.entity.billing
描述:
Datum() - Constructor for class com.unfbx.chatgpt.entity.billing.Datum
 
DAVINCI - com.unfbx.chatgpt.entity.completions.Completion.Model
 
DAVINCI - com.unfbx.chatgpt.entity.fineTune.FineTune.Model
 
DAVINCI_002 - com.unfbx.chatgpt.entity.completions.Completion.Model
 
DAVINCI_002 - com.unfbx.chatgpt.entity.fineTune.job.FineTuneJob.Model
 
DAVINCI_003 - com.unfbx.chatgpt.entity.completions.Completion.Model
 
decode(Encoding, List<Integer>) - Static method in class com.unfbx.chatgpt.utils.TikTokensUtil
通过Encoding和encoded数组反推text信息
decode(EncodingType, List<Integer>) - Static method in class com.unfbx.chatgpt.utils.TikTokensUtil
通过EncodingType和encoded编码数组,反推字符串文本
decode(String, List<Integer>) - Static method in class com.unfbx.chatgpt.utils.TikTokensUtil
通过模型名称和encoded编码数组,反推字符串文本
DefaultOpenAiAuthInterceptor - Class in com.unfbx.chatgpt.interceptor
描述:请求增加header apikey
DefaultOpenAiAuthInterceptor() - Constructor for class com.unfbx.chatgpt.interceptor.DefaultOpenAiAuthInterceptor
请求头处理
DefaultOpenAiAuthInterceptor(Map) - Constructor for class com.unfbx.chatgpt.interceptor.DefaultOpenAiAuthInterceptor
构造方法
DefaultPluginListener - Class in com.unfbx.chatgpt.sse
描述: 插件开发返回信息收集sse监听器
DefaultPluginListener(OpenAiStreamClient, EventSourceListener, PluginAbstract, ChatCompletion) - Constructor for class com.unfbx.chatgpt.sse.DefaultPluginListener
 
deleteFile(String) - Method in interface com.unfbx.chatgpt.OpenAiApi
删除文件
deleteFile(String) - Method in class com.unfbx.chatgpt.OpenAiClient
删除文件
deleteFineTuneModel(String) - Method in interface com.unfbx.chatgpt.OpenAiApi
删除微调作业模型 Delete a fine-tuned model.
deleteFineTuneModel(String) - Method in class com.unfbx.chatgpt.OpenAiClient
删除微调作业模型 Delete a fine-tuned model.
DeleteResponse - Class in com.unfbx.chatgpt.entity.common
描述:
DeleteResponse() - Constructor for class com.unfbx.chatgpt.entity.common.DeleteResponse
 
DynamicKeyOpenAiAuthInterceptor - Class in com.unfbx.chatgpt.interceptor
描述:动态处理key的鉴权拦截器
DynamicKeyOpenAiAuthInterceptor() - Constructor for class com.unfbx.chatgpt.interceptor.DynamicKeyOpenAiAuthInterceptor
请求头处理
DynamicKeyOpenAiAuthInterceptor(Map) - Constructor for class com.unfbx.chatgpt.interceptor.DynamicKeyOpenAiAuthInterceptor
构造方法

E

ECHO - com.unfbx.chatgpt.entity.Tts.TtsVoice
 
edit(Edit) - Method in class com.unfbx.chatgpt.OpenAiClient
Deprecated.
Edit - Class in com.unfbx.chatgpt.entity.edits
Deprecated.
Edit() - Constructor for class com.unfbx.chatgpt.entity.edits.Edit
Deprecated.
 
Edit.Model - Enum in com.unfbx.chatgpt.entity.edits
Deprecated.
 
editImages(File, ImageEdit) - Method in class com.unfbx.chatgpt.OpenAiClient
Creates an edited or extended image given an original image and a prompt.
editImages(File, File, ImageEdit) - Method in class com.unfbx.chatgpt.OpenAiClient
Creates an edited or extended image given an original image and a prompt.
editImages(File, String) - Method in class com.unfbx.chatgpt.OpenAiClient
Creates an edited or extended image given an original image and a prompt.
editImages(MultipartBody.Part, MultipartBody.Part, Map<String, RequestBody>) - Method in interface com.unfbx.chatgpt.OpenAiApi
Creates an edited or extended image given an original image and a prompt.
EditResponse - Class in com.unfbx.chatgpt.entity.edits
描述:
EditResponse() - Constructor for class com.unfbx.chatgpt.entity.edits.EditResponse
 
edits(Edit) - Method in interface com.unfbx.chatgpt.OpenAiApi
Deprecated.
Embedding - Class in com.unfbx.chatgpt.entity.embeddings
描述:
Embedding() - Constructor for class com.unfbx.chatgpt.entity.embeddings.Embedding
 
Embedding.EncodingFormat - Enum in com.unfbx.chatgpt.entity.embeddings
 
Embedding.Model - Enum in com.unfbx.chatgpt.entity.embeddings
 
EmbeddingResponse - Class in com.unfbx.chatgpt.entity.embeddings
描述:
EmbeddingResponse() - Constructor for class com.unfbx.chatgpt.entity.embeddings.EmbeddingResponse
 
embeddings(Embedding) - Method in interface com.unfbx.chatgpt.OpenAiApi
文本向量计算
embeddings(Embedding) - Method in class com.unfbx.chatgpt.OpenAiClient
文本转换向量
embeddings(String) - Method in class com.unfbx.chatgpt.OpenAiClient
向量计算:单文本
embeddings(List<String>) - Method in class com.unfbx.chatgpt.OpenAiClient
向量计算:集合文本
encode(Encoding, String) - Static method in class com.unfbx.chatgpt.utils.TikTokensUtil
通过Encoding和text获取编码数组
encode(EncodingType, String) - Static method in class com.unfbx.chatgpt.utils.TikTokensUtil
获取encode的编码数组
encode(String, String) - Static method in class com.unfbx.chatgpt.utils.TikTokensUtil
获取encode的编码数组,通过模型名称
engine(String) - Method in interface com.unfbx.chatgpt.OpenAiApi
Deprecated.
engine(String) - Method in class com.unfbx.chatgpt.OpenAiClient
Deprecated.
Engine - Class in com.unfbx.chatgpt.entity.engines
描述:
Engine() - Constructor for class com.unfbx.chatgpt.entity.engines.Engine
 
engines() - Method in interface com.unfbx.chatgpt.OpenAiApi
Deprecated.
engines() - Method in class com.unfbx.chatgpt.OpenAiClient
Deprecated.
Error() - Constructor for class com.unfbx.chatgpt.entity.common.OpenAiResponse.Error
 
Event - Class in com.unfbx.chatgpt.entity.fineTune
 
Event() - Constructor for class com.unfbx.chatgpt.entity.fineTune.Event
 

F

FABLE - com.unfbx.chatgpt.entity.Tts.TtsVoice
 
File - Class in com.unfbx.chatgpt.entity.files
描述:
File() - Constructor for class com.unfbx.chatgpt.entity.files.File
 
files() - Method in interface com.unfbx.chatgpt.OpenAiApi
Returns a list of files that belong to the user's organization.
files() - Method in class com.unfbx.chatgpt.OpenAiClient
获取文件列表
fineTune(FineTune) - Method in interface com.unfbx.chatgpt.OpenAiApi
Deprecated.
fineTune(FineTune) - Method in class com.unfbx.chatgpt.OpenAiClient
Deprecated.
fineTune(String) - Method in class com.unfbx.chatgpt.OpenAiClient
Deprecated.
FineTune - Class in com.unfbx.chatgpt.entity.fineTune
 
FineTune() - Constructor for class com.unfbx.chatgpt.entity.fineTune.FineTune
 
FineTune.Model - Enum in com.unfbx.chatgpt.entity.fineTune
 
FineTuneDeleteResponse - Class in com.unfbx.chatgpt.entity.fineTune
 
FineTuneDeleteResponse() - Constructor for class com.unfbx.chatgpt.entity.fineTune.FineTuneDeleteResponse
 
FineTuneError - Class in com.unfbx.chatgpt.entity.fineTune.job
描述:
FineTuneError() - Constructor for class com.unfbx.chatgpt.entity.fineTune.job.FineTuneError
 
fineTuneEvents(String) - Method in interface com.unfbx.chatgpt.OpenAiApi
Deprecated.
fineTuneEvents(String) - Method in class com.unfbx.chatgpt.OpenAiClient
Deprecated.
fineTuneJob(FineTuneJob) - Method in interface com.unfbx.chatgpt.OpenAiApi
创建微调job
fineTuneJob(FineTuneJob) - Method in class com.unfbx.chatgpt.OpenAiClient
创建微调job
fineTuneJob(String) - Method in class com.unfbx.chatgpt.OpenAiClient
创建微调job
FineTuneJob - Class in com.unfbx.chatgpt.entity.fineTune.job
 
FineTuneJob() - Constructor for class com.unfbx.chatgpt.entity.fineTune.job.FineTuneJob
 
FineTuneJob.Model - Enum in com.unfbx.chatgpt.entity.fineTune.job
 
FineTuneJobEvent - Class in com.unfbx.chatgpt.entity.fineTune.job
 
FineTuneJobEvent() - Constructor for class com.unfbx.chatgpt.entity.fineTune.job.FineTuneJobEvent
 
fineTuneJobEvents(String, String, Integer) - Method in interface com.unfbx.chatgpt.OpenAiApi
微调job事件列表
fineTuneJobEvents(String, String, Integer) - Method in class com.unfbx.chatgpt.OpenAiClient
微调作业事件列表
FineTuneJobListResponse<T> - Class in com.unfbx.chatgpt.entity.fineTune.job
 
FineTuneJobListResponse() - Constructor for class com.unfbx.chatgpt.entity.fineTune.job.FineTuneJobListResponse
 
FineTuneJobResponse - Class in com.unfbx.chatgpt.entity.fineTune.job
描述:
FineTuneJobResponse() - Constructor for class com.unfbx.chatgpt.entity.fineTune.job.FineTuneJobResponse
 
fineTuneJobs(String, Integer) - Method in interface com.unfbx.chatgpt.OpenAiApi
微调job集合
fineTuneJobs(String, Integer) - Method in class com.unfbx.chatgpt.OpenAiClient
微调job集合
FineTuneResponse - Class in com.unfbx.chatgpt.entity.fineTune
 
FineTuneResponse() - Constructor for class com.unfbx.chatgpt.entity.fineTune.FineTuneResponse
 
fineTunes() - Method in interface com.unfbx.chatgpt.OpenAiApi
Deprecated.
fineTunes() - Method in class com.unfbx.chatgpt.OpenAiClient
Deprecated.
FLAC - com.unfbx.chatgpt.entity.Tts.TtsFormat
 
FLOAT - com.unfbx.chatgpt.entity.embeddings.Embedding.EncodingFormat
 
func(R) - Method in class com.unfbx.chatgpt.plugin.PluginAbstract
 
FUNCTION - com.unfbx.chatgpt.entity.chat.BaseMessage.Role
 
FUNCTION - com.unfbx.chatgpt.entity.chat.tool.ToolCalls.Type
 
FUNCTION - com.unfbx.chatgpt.entity.chat.tool.ToolChoiceObj.Type
 
FUNCTION - com.unfbx.chatgpt.entity.chat.tool.Tools.Type
 
functionCall(FunctionCall) - Method in class com.unfbx.chatgpt.entity.chat.Message.Builder
 
functionCall(FunctionCall) - Method in class com.unfbx.chatgpt.entity.chat.MessagePicture.Builder
 
FunctionCall - Class in com.unfbx.chatgpt.entity.chat
描述:函数调用返回值
FunctionCall() - Constructor for class com.unfbx.chatgpt.entity.chat.FunctionCall
 
Functions - Class in com.unfbx.chatgpt.entity.chat
描述:方法参数实体类,实例数据如下
Functions() - Constructor for class com.unfbx.chatgpt.entity.chat.Functions
 

G

genImages(Image) - Method in interface com.unfbx.chatgpt.OpenAiApi
Creates an image given a prompt.
genImages(Image) - Method in class com.unfbx.chatgpt.OpenAiClient
根据描述生成图片
genImages(String) - Method in class com.unfbx.chatgpt.OpenAiClient
根据描述生成图片
getEncoding(EncodingType) - Static method in class com.unfbx.chatgpt.utils.TikTokensUtil
获取一个Encoding对象,通过Encoding类型
getEncoding(String) - Static method in class com.unfbx.chatgpt.utils.TikTokensUtil
获取一个Encoding对象,通过模型名称
getKey() - Method in class com.unfbx.chatgpt.interceptor.OpenAiAuthInterceptor
获取请求key
getModelTypeByName(String) - Static method in class com.unfbx.chatgpt.utils.TikTokensUtil
获取modelType
GPT_3_5_TURBO - com.unfbx.chatgpt.entity.chat.BaseChatCompletion.Model
gpt-3.5-turbo
GPT_3_5_TURBO_0301 - com.unfbx.chatgpt.entity.chat.BaseChatCompletion.Model
Deprecated.
GPT_3_5_TURBO_0613 - com.unfbx.chatgpt.entity.chat.BaseChatCompletion.Model
gpt-3.5-turbo-0613 支持函数
GPT_3_5_TURBO_0613 - com.unfbx.chatgpt.entity.fineTune.job.FineTuneJob.Model
 
GPT_3_5_TURBO_1106 - com.unfbx.chatgpt.entity.fineTune.job.FineTuneJob.Model
 
GPT_3_5_TURBO_16K - com.unfbx.chatgpt.entity.chat.BaseChatCompletion.Model
gpt-3.5-turbo-16k 超长上下文
GPT_3_5_TURBO_16K_0613 - com.unfbx.chatgpt.entity.chat.BaseChatCompletion.Model
gpt-3.5-turbo-16k-0613 超长上下文 支持函数
GPT_4 - com.unfbx.chatgpt.entity.chat.BaseChatCompletion.Model
GPT4.0
GPT_4_0314 - com.unfbx.chatgpt.entity.chat.BaseChatCompletion.Model
Deprecated.
GPT_4_0613 - com.unfbx.chatgpt.entity.chat.BaseChatCompletion.Model
gpt-4-0613,支持函数
GPT_4_0613 - com.unfbx.chatgpt.entity.fineTune.job.FineTuneJob.Model
 
GPT_4_1106_PREVIEW - com.unfbx.chatgpt.entity.chat.BaseChatCompletion.Model
支持数组模式,支持function call,支持可重复输出
GPT_4_32K - com.unfbx.chatgpt.entity.chat.BaseChatCompletion.Model
GPT4.0 超长上下文
GPT_4_32K_0314 - com.unfbx.chatgpt.entity.chat.BaseChatCompletion.Model
Deprecated.
GPT_4_32K_0613 - com.unfbx.chatgpt.entity.chat.BaseChatCompletion.Model
gpt-4-0613,支持函数
GPT_4_VISION_PREVIEW - com.unfbx.chatgpt.entity.chat.BaseChatCompletion.Model
支持图片
Grants - Class in com.unfbx.chatgpt.entity.billing
描述:
Grants() - Constructor for class com.unfbx.chatgpt.entity.billing.Grants
 

H

HD - com.unfbx.chatgpt.entity.images.Image.Quality
 
HyperParam - Class in com.unfbx.chatgpt.entity.fineTune
 
HyperParam() - Constructor for class com.unfbx.chatgpt.entity.fineTune.HyperParam
 
HyperParameters - Class in com.unfbx.chatgpt.entity.fineTune.job
 
HyperParameters() - Constructor for class com.unfbx.chatgpt.entity.fineTune.job.HyperParameters
 

I

IError - Interface in com.unfbx.chatgpt.exception
描述:
Image - Class in com.unfbx.chatgpt.entity.images
描述:
Image() - Constructor for class com.unfbx.chatgpt.entity.images.Image
 
IMAGE_URL - com.unfbx.chatgpt.entity.chat.Content.Type
 
Image.Model - Enum in com.unfbx.chatgpt.entity.images
图片生成模型
Image.Quality - Enum in com.unfbx.chatgpt.entity.images
生成图片质量
Image.Style - Enum in com.unfbx.chatgpt.entity.images
生成图片风格
ImageEdit - Class in com.unfbx.chatgpt.entity.images
描述:
ImageEdit() - Constructor for class com.unfbx.chatgpt.entity.images.ImageEdit
 
ImageResponse - Class in com.unfbx.chatgpt.entity.images
描述:
ImageResponse() - Constructor for class com.unfbx.chatgpt.entity.images.ImageResponse
 
ImageUrl - Class in com.unfbx.chatgpt.entity.chat
描述:
ImageUrl() - Constructor for class com.unfbx.chatgpt.entity.chat.ImageUrl
 
ImageVariations - Class in com.unfbx.chatgpt.entity.images
描述:
ImageVariations() - Constructor for class com.unfbx.chatgpt.entity.images.ImageVariations
 
intercept(Interceptor.Chain) - Method in class com.unfbx.chatgpt.interceptor.DefaultOpenAiAuthInterceptor
拦截器鉴权
intercept(Interceptor.Chain) - Method in class com.unfbx.chatgpt.interceptor.DynamicKeyOpenAiAuthInterceptor
 
intercept(Interceptor.Chain) - Method in class com.unfbx.chatgpt.interceptor.OpenAiResponseInterceptor
 
Item - Class in com.unfbx.chatgpt.entity.embeddings
 
Item - Class in com.unfbx.chatgpt.entity.images
描述:
Item() - Constructor for class com.unfbx.chatgpt.entity.embeddings.Item
 
Item() - Constructor for class com.unfbx.chatgpt.entity.images.Item
 

J

JSON - com.unfbx.chatgpt.entity.whisper.Whisper.ResponseFormat
 
JSON_OBJECT - com.unfbx.chatgpt.entity.chat.ResponseFormat.Type
 

K

KeyRandomStrategy - Class in com.unfbx.chatgpt.function
描述:随机策略
KeyRandomStrategy() - Constructor for class com.unfbx.chatgpt.function.KeyRandomStrategy
 
keyStrategy(KeyStrategyFunction) - Method in class com.unfbx.chatgpt.OpenAiClient.Builder
 
keyStrategy(KeyStrategyFunction) - Method in class com.unfbx.chatgpt.OpenAiStreamClient.Builder
 
KeyStrategyFunction<T,​R> - Interface in com.unfbx.chatgpt.function
描述:key 的获取策略 jdk默认实现

L

LineItem - Class in com.unfbx.chatgpt.entity.billing
描述:金额消耗列表
LineItem() - Constructor for class com.unfbx.chatgpt.entity.billing.LineItem
 
log(String) - Method in class com.unfbx.chatgpt.interceptor.OpenAILogger
 
Logprobs - Class in com.unfbx.chatgpt.entity.common
描述:
Logprobs() - Constructor for class com.unfbx.chatgpt.entity.common.Logprobs
 

M

Message - Class in com.unfbx.chatgpt.entity.chat
描述:
Message() - Constructor for class com.unfbx.chatgpt.entity.chat.Message
 
Message(String, String, String, List<ToolCalls>, String, FunctionCall) - Constructor for class com.unfbx.chatgpt.entity.chat.Message
构造函数
MESSAGE_NOT_NUL - com.unfbx.chatgpt.exception.CommonError
 
Message.Builder - Class in com.unfbx.chatgpt.entity.chat
 
MessagePicture - Class in com.unfbx.chatgpt.entity.chat
描述:
MessagePicture() - Constructor for class com.unfbx.chatgpt.entity.chat.MessagePicture
 
MessagePicture(String, String, List<Content>, List<ToolCalls>, String, FunctionCall) - Constructor for class com.unfbx.chatgpt.entity.chat.MessagePicture
构造函数
MessagePicture.Builder - Class in com.unfbx.chatgpt.entity.chat
 
model(String) - Method in interface com.unfbx.chatgpt.OpenAiApi
models 返回的数据id
model(String) - Method in class com.unfbx.chatgpt.OpenAiClient
openAi模型详细信息
Model - Class in com.unfbx.chatgpt.entity.models
描述:
Model() - Constructor for class com.unfbx.chatgpt.entity.models.Model
 
ModelResponse - Class in com.unfbx.chatgpt.entity.models
描述:
ModelResponse() - Constructor for class com.unfbx.chatgpt.entity.models.ModelResponse
 
models() - Method in interface com.unfbx.chatgpt.OpenAiApi
模型列表
models() - Method in class com.unfbx.chatgpt.OpenAiClient
openAi模型列表
Moderation - Class in com.unfbx.chatgpt.entity.moderations
描述:文本审核,敏感词鉴别
Moderation() - Constructor for class com.unfbx.chatgpt.entity.moderations.Moderation
 
Moderation.Model - Enum in com.unfbx.chatgpt.entity.moderations
 
ModerationResponse - Class in com.unfbx.chatgpt.entity.moderations
描述:
ModerationResponse() - Constructor for class com.unfbx.chatgpt.entity.moderations.ModerationResponse
 
moderations(Moderation) - Method in interface com.unfbx.chatgpt.OpenAiApi
文本审核
moderations(Moderation) - Method in class com.unfbx.chatgpt.OpenAiClient
文本审核
moderations(String) - Method in class com.unfbx.chatgpt.OpenAiClient
文本审核
moderations(List<String>) - Method in class com.unfbx.chatgpt.OpenAiClient
文本审核
MP3 - com.unfbx.chatgpt.entity.Tts.TtsFormat
 
msg() - Method in enum com.unfbx.chatgpt.exception.CommonError
 
msg() - Method in interface com.unfbx.chatgpt.exception.IError
 

N

name(String) - Method in class com.unfbx.chatgpt.entity.chat.Message.Builder
 
name(String) - Method in class com.unfbx.chatgpt.entity.chat.MessagePicture.Builder
 
NATURAL - com.unfbx.chatgpt.entity.images.Image.Style
 
NO_ACTIVE_API_KEYS - com.unfbx.chatgpt.exception.CommonError
 
noHaveActiveKeyWarring() - Method in class com.unfbx.chatgpt.interceptor.DefaultOpenAiAuthInterceptor
 
noHaveActiveKeyWarring() - Method in class com.unfbx.chatgpt.interceptor.DynamicKeyOpenAiAuthInterceptor
所有的key都失效后,自定义预警配置 不配置直接return
noHaveActiveKeyWarring() - Method in class com.unfbx.chatgpt.interceptor.OpenAiAuthInterceptor
所有的key都失效后,自定义预警配置 可以通过warringConfig配置参数实现飞书、钉钉、企业微信、邮箱预警等
NONE - com.unfbx.chatgpt.entity.chat.tool.ToolChoice.Choice
 
NOVA - com.unfbx.chatgpt.entity.Tts.TtsVoice
 

O

okHttpClient(OkHttpClient) - Method in class com.unfbx.chatgpt.OpenAiClient.Builder
 
okHttpClient(OkHttpClient) - Method in class com.unfbx.chatgpt.OpenAiStreamClient.Builder
 
onClosed(EventSource) - Method in class com.unfbx.chatgpt.sse.ConsoleEventSourceListener
 
onClosed(EventSource) - Method in class com.unfbx.chatgpt.sse.PluginListener
 
onClosedAfter() - Method in class com.unfbx.chatgpt.sse.PluginListener
sse关闭后处理,第二次请求方法
onErrorDealApiKeys(String) - Method in class com.unfbx.chatgpt.interceptor.DefaultOpenAiAuthInterceptor
key失效或者禁用后的处理逻辑 默认不处理
onErrorDealApiKeys(String) - Method in class com.unfbx.chatgpt.interceptor.DynamicKeyOpenAiAuthInterceptor
 
onErrorDealApiKeys(String) - Method in class com.unfbx.chatgpt.interceptor.OpenAiAuthInterceptor
自定义apiKeys的处理逻辑
onEvent(EventSource, String, String, String) - Method in class com.unfbx.chatgpt.sse.ConsoleEventSourceListener
 
onEvent(EventSource, String, String, String) - Method in class com.unfbx.chatgpt.sse.PluginListener
 
onFailure(EventSource, Throwable, Response) - Method in class com.unfbx.chatgpt.sse.ConsoleEventSourceListener
 
onFailure(EventSource, Throwable, Response) - Method in class com.unfbx.chatgpt.sse.PluginListener
 
onOpen(EventSource, Response) - Method in class com.unfbx.chatgpt.sse.ConsoleEventSourceListener
 
onOpen(EventSource, Response) - Method in class com.unfbx.chatgpt.sse.PluginListener
 
ONYX - com.unfbx.chatgpt.entity.Tts.TtsVoice
 
OPENAI_AUTHENTICATION_ERROR - com.unfbx.chatgpt.exception.CommonError
 
OPENAI_HOST - Static variable in class com.unfbx.chatgpt.constant.OpenAIConst
 
OPENAI_LIMIT_ERROR - com.unfbx.chatgpt.exception.CommonError
 
OPENAI_SERVER_ERROR - com.unfbx.chatgpt.exception.CommonError
 
OpenAiApi - Interface in com.unfbx.chatgpt
描述: open ai官方api接口
OpenAiAuthInterceptor - Class in com.unfbx.chatgpt.interceptor
 
OpenAiAuthInterceptor() - Constructor for class com.unfbx.chatgpt.interceptor.OpenAiAuthInterceptor
 
OpenAiClient - Class in com.unfbx.chatgpt
描述: open ai 客户端
OpenAiClient.Builder - Class in com.unfbx.chatgpt
 
OpenAIConst - Class in com.unfbx.chatgpt.constant
描述:
OpenAIConst() - Constructor for class com.unfbx.chatgpt.constant.OpenAIConst
 
OpenAILogger - Class in com.unfbx.chatgpt.interceptor
描述: 日志
OpenAILogger() - Constructor for class com.unfbx.chatgpt.interceptor.OpenAILogger
 
OpenAiResponse<T> - Class in com.unfbx.chatgpt.entity.common
描述:
OpenAiResponse() - Constructor for class com.unfbx.chatgpt.entity.common.OpenAiResponse
 
OpenAiResponse.Error - Class in com.unfbx.chatgpt.entity.common
 
OpenAiResponseInterceptor - Class in com.unfbx.chatgpt.interceptor
描述:openai 返回值处理Interceptor
OpenAiResponseInterceptor() - Constructor for class com.unfbx.chatgpt.interceptor.OpenAiResponseInterceptor
 
OpenAiStreamClient - Class in com.unfbx.chatgpt
描述: open ai 客户端
OpenAiStreamClient.Builder - Class in com.unfbx.chatgpt
 
OPUS - com.unfbx.chatgpt.entity.Tts.TtsFormat
 

P

PARAM_ERROR - com.unfbx.chatgpt.exception.CommonError
 
Parameters - Class in com.unfbx.chatgpt.entity.chat
描述:方法参数类,扩展参数可以继承Parameters自己实现 参考:
Parameters() - Constructor for class com.unfbx.chatgpt.entity.chat.Parameters
 
Permission - Class in com.unfbx.chatgpt.entity.models
描述:
Permission() - Constructor for class com.unfbx.chatgpt.entity.models.Permission
 
Plan - Class in com.unfbx.chatgpt.entity.billing
描述:
Plan() - Constructor for class com.unfbx.chatgpt.entity.billing.Plan
 
PluginAbstract<R extends PluginParam,​T> - Class in com.unfbx.chatgpt.plugin
 
PluginAbstract(Class<?>) - Constructor for class com.unfbx.chatgpt.plugin.PluginAbstract
 
PluginAbstract.Arg - Class in com.unfbx.chatgpt.plugin
 
PluginListener<R extends PluginParam,​T> - Class in com.unfbx.chatgpt.sse
描述: 插件开发返回信息收集sse监听器
PluginListener(OpenAiStreamClient, EventSourceListener, PluginAbstract<R, T>, ChatCompletion) - Constructor for class com.unfbx.chatgpt.sse.PluginListener
构造方法必备四个元素
PluginParam - Class in com.unfbx.chatgpt.plugin
 
PluginParam() - Constructor for class com.unfbx.chatgpt.plugin.PluginParam
 

R

ResponseFormat - Class in com.unfbx.chatgpt.entity.chat
指定模型必须输出的格式的对象。
ResponseFormat - Enum in com.unfbx.chatgpt.entity.images
描述:
ResponseFormat() - Constructor for class com.unfbx.chatgpt.entity.chat.ResponseFormat
 
ResponseFormat.Type - Enum in com.unfbx.chatgpt.entity.chat
 
Result - Class in com.unfbx.chatgpt.entity.moderations
描述:
Result() - Constructor for class com.unfbx.chatgpt.entity.moderations.Result
 
retrieveFile(String) - Method in interface com.unfbx.chatgpt.OpenAiApi
检索文件
retrieveFile(String) - Method in class com.unfbx.chatgpt.OpenAiClient
检索文件
retrieveFileContent(String) - Method in interface com.unfbx.chatgpt.OpenAiApi
检索文件内容 ###不对免费用户开放### ###不对免费用户开放### ###不对免费用户开放###
retrieveFineTune(String) - Method in interface com.unfbx.chatgpt.OpenAiApi
Deprecated.
retrieveFineTune(String) - Method in class com.unfbx.chatgpt.OpenAiClient
Deprecated.
retrieveFineTuneJob(String) - Method in interface com.unfbx.chatgpt.OpenAiApi
检索微调job
retrieveFineTuneJob(String) - Method in class com.unfbx.chatgpt.OpenAiClient
检索微调job
RETRY_ERROR - com.unfbx.chatgpt.exception.CommonError
 
role(BaseMessage.Role) - Method in class com.unfbx.chatgpt.entity.chat.Message.Builder
 
role(BaseMessage.Role) - Method in class com.unfbx.chatgpt.entity.chat.MessagePicture.Builder
 
role(String) - Method in class com.unfbx.chatgpt.entity.chat.Message.Builder
 
role(String) - Method in class com.unfbx.chatgpt.entity.chat.MessagePicture.Builder
 

S

setArgs(List<PluginAbstract.Arg>) - Method in class com.unfbx.chatgpt.plugin.PluginAbstract
 
setBatchSize(Integer) - Method in class com.unfbx.chatgpt.entity.fineTune.FineTune
 
setClassificationBetas(List) - Method in class com.unfbx.chatgpt.entity.fineTune.FineTune
 
setClassificationNClasses(Integer) - Method in class com.unfbx.chatgpt.entity.fineTune.FineTune
 
setComputeClassificationMetrics(boolean) - Method in class com.unfbx.chatgpt.entity.fineTune.FineTune
 
setInput(String) - Method in class com.unfbx.chatgpt.entity.edits.Edit
Deprecated.
 
setInput(List<String>) - Method in class com.unfbx.chatgpt.entity.moderations.Moderation
 
setInstruction(String) - Method in class com.unfbx.chatgpt.entity.edits.Edit
Deprecated.
 
setLearningRateMultiplier(Double) - Method in class com.unfbx.chatgpt.entity.fineTune.FineTune
 
setModel(Edit.Model) - Method in class com.unfbx.chatgpt.entity.edits.Edit
Deprecated.
 
setModel(Embedding.Model) - Method in class com.unfbx.chatgpt.entity.embeddings.Embedding
 
setModel(Moderation.Model) - Method in class com.unfbx.chatgpt.entity.moderations.Moderation
 
setModel(String) - Method in class com.unfbx.chatgpt.entity.fineTune.FineTune
 
setN(Integer) - Method in class com.unfbx.chatgpt.entity.edits.Edit
Deprecated.
 
setN(Integer) - Method in class com.unfbx.chatgpt.entity.images.ImageEdit
 
setN(Integer) - Method in class com.unfbx.chatgpt.entity.images.ImageVariations
 
setN_epochs(Integer) - Method in class com.unfbx.chatgpt.entity.fineTune.FineTune
 
setPrompt(String) - Method in class com.unfbx.chatgpt.entity.images.ImageEdit
 
setPromptLossWeight(Double) - Method in class com.unfbx.chatgpt.entity.fineTune.FineTune
 
setRequired(List<String>) - Method in class com.unfbx.chatgpt.plugin.PluginAbstract
 
setResponseFormat(ResponseFormat) - Method in class com.unfbx.chatgpt.entity.images.ImageEdit
 
setResponseFormat(ResponseFormat) - Method in class com.unfbx.chatgpt.entity.images.ImageVariations
 
setSize(SizeEnum) - Method in class com.unfbx.chatgpt.entity.images.ImageEdit
 
setSize(SizeEnum) - Method in class com.unfbx.chatgpt.entity.images.ImageVariations
 
setSuffix(String) - Method in class com.unfbx.chatgpt.entity.fineTune.FineTune
 
setTemperature(double) - Method in class com.unfbx.chatgpt.entity.edits.Edit
Deprecated.
 
setTopP(Double) - Method in class com.unfbx.chatgpt.entity.edits.Edit
Deprecated.
 
setTrainingFile(String) - Method in class com.unfbx.chatgpt.entity.fineTune.FineTune
 
setUser(String) - Method in class com.unfbx.chatgpt.entity.embeddings.Embedding
 
setUser(String) - Method in class com.unfbx.chatgpt.entity.images.ImageEdit
 
setUser(String) - Method in class com.unfbx.chatgpt.entity.images.ImageVariations
 
setValidationFile(String) - Method in class com.unfbx.chatgpt.entity.fineTune.FineTune
 
SHIMMER - com.unfbx.chatgpt.entity.Tts.TtsVoice
 
size_1024 - com.unfbx.chatgpt.entity.images.SizeEnum
 
size_1024_1792 - com.unfbx.chatgpt.entity.images.SizeEnum
 
size_1792_1024 - com.unfbx.chatgpt.entity.images.SizeEnum
 
size_256 - com.unfbx.chatgpt.entity.images.SizeEnum
 
size_512 - com.unfbx.chatgpt.entity.images.SizeEnum
 
SizeEnum - Enum in com.unfbx.chatgpt.entity.images
描述:生成图片尺寸大小
speechToTextTranscriptions(File) - Method in class com.unfbx.chatgpt.OpenAiClient
简易版 语音转文字
speechToTextTranscriptions(File, Transcriptions) - Method in class com.unfbx.chatgpt.OpenAiClient
语音转文字
speechToTextTranscriptions(MultipartBody.Part, Map<String, RequestBody>) - Method in interface com.unfbx.chatgpt.OpenAiApi
语音转文字
speechToTextTranslations(File) - Method in class com.unfbx.chatgpt.OpenAiClient
简易版 语音翻译:目前仅支持翻译为英文
speechToTextTranslations(File, Translations) - Method in class com.unfbx.chatgpt.OpenAiClient
语音翻译:目前仅支持翻译为英文
speechToTextTranslations(MultipartBody.Part, Map<String, RequestBody>) - Method in interface com.unfbx.chatgpt.OpenAiApi
语音翻译:目前仅支持翻译为英文
SRT - com.unfbx.chatgpt.entity.whisper.Whisper.ResponseFormat
 
STANDARD - com.unfbx.chatgpt.entity.images.Image.Quality
 
streamChatCompletion(List<Message>, EventSourceListener) - Method in class com.unfbx.chatgpt.OpenAiStreamClient
流式输出,最新版的GPT-3.5 chat completion 更加贴近官方网站的问答模型 警告:(不支持图片输入)
streamChatCompletion(T, EventSourceListener) - Method in class com.unfbx.chatgpt.OpenAiStreamClient
流式输出,最新版的GPT-3.5 chat completion 更加贴近官方网站的问答模型
streamChatCompletionWithPlugin(ChatCompletion, EventSourceListener, PluginAbstract<R, T>) - Method in class com.unfbx.chatgpt.OpenAiStreamClient
插件问答简易版 默认取messages最后一个元素构建插件对话 默认模型:ChatCompletion.Model.GPT_3_5_TURBO_16K_0613
streamChatCompletionWithPlugin(ChatCompletion, EventSourceListener, PluginListener, PluginAbstract<R, T>) - Method in class com.unfbx.chatgpt.OpenAiStreamClient
插件问答简易版 默认取messages最后一个元素构建插件对话 默认模型:ChatCompletion.Model.GPT_3_5_TURBO_16K_0613
streamChatCompletionWithPlugin(List<Message>, String, EventSourceListener, PluginAbstract<R, T>) - Method in class com.unfbx.chatgpt.OpenAiStreamClient
插件问答简易版 默认取messages最后一个元素构建插件对话
streamChatCompletionWithPlugin(List<Message>, EventSourceListener, PluginAbstract<R, T>) - Method in class com.unfbx.chatgpt.OpenAiStreamClient
插件问答简易版 默认取messages最后一个元素构建插件对话 默认模型:ChatCompletion.Model.GPT_3_5_TURBO_16K_0613
streamCompletions(Completion, EventSourceListener) - Method in class com.unfbx.chatgpt.OpenAiStreamClient
问答接口 stream 形式
streamCompletions(String, EventSourceListener) - Method in class com.unfbx.chatgpt.OpenAiStreamClient
问答接口-简易版
subscription() - Method in interface com.unfbx.chatgpt.OpenAiApi
账户信息查询:里面包含总金额(美元)等信息
subscription() - Method in class com.unfbx.chatgpt.OpenAiClient
账户信息查询:里面包含总金额等信息
subscription() - Method in class com.unfbx.chatgpt.OpenAiStreamClient
账户信息查询:里面包含总金额等信息
Subscription - Class in com.unfbx.chatgpt.entity.billing
描述:账户信息
Subscription() - Constructor for class com.unfbx.chatgpt.entity.billing.Subscription
 
SYS_ERROR - com.unfbx.chatgpt.exception.CommonError
 
SYSTEM - com.unfbx.chatgpt.entity.chat.BaseMessage.Role
 

T

TEXT - com.unfbx.chatgpt.entity.chat.Content.Type
 
TEXT - com.unfbx.chatgpt.entity.chat.ResponseFormat.Type
 
TEXT - com.unfbx.chatgpt.entity.whisper.Whisper.ResponseFormat
 
TEXT_DAVINCI_EDIT_001 - com.unfbx.chatgpt.entity.edits.Edit.Model
Deprecated.
 
TEXT_EMBEDDING_ADA_002 - com.unfbx.chatgpt.entity.embeddings.Embedding.Model
 
TEXT_MODERATION_LATEST - com.unfbx.chatgpt.entity.moderations.Moderation.Model
 
TEXT_MODERATION_STABLE - com.unfbx.chatgpt.entity.moderations.Moderation.Model
 
textToSpeech(TextToSpeech) - Method in interface com.unfbx.chatgpt.OpenAiApi
文本转语音
textToSpeech(TextToSpeech, Callback) - Method in class com.unfbx.chatgpt.OpenAiClient
 
TextToSpeech - Class in com.unfbx.chatgpt.entity.Tts
 
TextToSpeech() - Constructor for class com.unfbx.chatgpt.entity.Tts.TextToSpeech
 
TextToSpeech.Model - Enum in com.unfbx.chatgpt.entity.Tts
 
TikTokensUtil - Class in com.unfbx.chatgpt.utils
描述:token计算工具类
TikTokensUtil() - Constructor for class com.unfbx.chatgpt.utils.TikTokensUtil
 
tokens() - Method in class com.unfbx.chatgpt.entity.chat.ChatCompletion
获取当前参数的tokens数
tokens() - Method in class com.unfbx.chatgpt.entity.completions.Completion
获取当前参数的tokens数
tokens(Encoding, String) - Static method in class com.unfbx.chatgpt.utils.TikTokensUtil
通过Encoding计算text信息的tokens
tokens(EncodingType, String) - Static method in class com.unfbx.chatgpt.utils.TikTokensUtil
计算指定字符串的tokens,通过EncodingType
tokens(String, List<Message>) - Static method in class com.unfbx.chatgpt.utils.TikTokensUtil
通过模型名称计算messages获取编码数组 参考官方的处理逻辑: https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb
tokens(String, String) - Static method in class com.unfbx.chatgpt.utils.TikTokensUtil
通过模型名称, 计算指定字符串的tokens
TOOL - com.unfbx.chatgpt.entity.chat.BaseMessage.Role
 
ToolCallFunction - Class in com.unfbx.chatgpt.entity.chat.tool
ToolCall 的 Function参数 The function that the model called.
ToolCallFunction() - Constructor for class com.unfbx.chatgpt.entity.chat.tool.ToolCallFunction
 
toolCallId(String) - Method in class com.unfbx.chatgpt.entity.chat.Message.Builder
 
toolCallId(String) - Method in class com.unfbx.chatgpt.entity.chat.MessagePicture.Builder
 
toolCalls(List<ToolCalls>) - Method in class com.unfbx.chatgpt.entity.chat.Message.Builder
 
toolCalls(List<ToolCalls>) - Method in class com.unfbx.chatgpt.entity.chat.MessagePicture.Builder
 
ToolCalls - Class in com.unfbx.chatgpt.entity.chat.tool
The tool calls generated by the model, such as function calls.
ToolCalls() - Constructor for class com.unfbx.chatgpt.entity.chat.tool.ToolCalls
 
ToolCalls.Type - Enum in com.unfbx.chatgpt.entity.chat.tool
 
ToolChoice - Class in com.unfbx.chatgpt.entity.chat.tool
choice和object同时存在是以object为准
ToolChoice() - Constructor for class com.unfbx.chatgpt.entity.chat.tool.ToolChoice
 
ToolChoice.Choice - Enum in com.unfbx.chatgpt.entity.chat.tool
 
ToolChoiceObj - Class in com.unfbx.chatgpt.entity.chat.tool
 
ToolChoiceObj() - Constructor for class com.unfbx.chatgpt.entity.chat.tool.ToolChoiceObj
 
ToolChoiceObj.Type - Enum in com.unfbx.chatgpt.entity.chat.tool
 
ToolChoiceObjFunction - Class in com.unfbx.chatgpt.entity.chat.tool
 
ToolChoiceObjFunction() - Constructor for class com.unfbx.chatgpt.entity.chat.tool.ToolChoiceObjFunction
 
Tools - Class in com.unfbx.chatgpt.entity.chat.tool
 
Tools() - Constructor for class com.unfbx.chatgpt.entity.chat.tool.Tools
 
Tools.Type - Enum in com.unfbx.chatgpt.entity.chat.tool
 
ToolsFunction - Class in com.unfbx.chatgpt.entity.chat.tool
 
ToolsFunction() - Constructor for class com.unfbx.chatgpt.entity.chat.tool.ToolsFunction
 
TrainingFile - Class in com.unfbx.chatgpt.entity.fineTune
 
TrainingFile() - Constructor for class com.unfbx.chatgpt.entity.fineTune.TrainingFile
 
Transcriptions - Class in com.unfbx.chatgpt.entity.whisper
 
Transcriptions() - Constructor for class com.unfbx.chatgpt.entity.whisper.Transcriptions
 
Translations - Class in com.unfbx.chatgpt.entity.whisper
 
Translations() - Constructor for class com.unfbx.chatgpt.entity.whisper.Translations
 
TTS_1 - com.unfbx.chatgpt.entity.Tts.TextToSpeech.Model
 
TTS_1_HD - com.unfbx.chatgpt.entity.Tts.TextToSpeech.Model
 
TtsFormat - Enum in com.unfbx.chatgpt.entity.Tts
 
TtsVoice - Enum in com.unfbx.chatgpt.entity.Tts
生成不同声音的音频

U

uploadFile(File) - Method in class com.unfbx.chatgpt.OpenAiClient
上传文件
uploadFile(String, File) - Method in class com.unfbx.chatgpt.OpenAiClient
上传文件
uploadFile(MultipartBody.Part, RequestBody) - Method in interface com.unfbx.chatgpt.OpenAiApi
上传文件
UploadFileResponse - Class in com.unfbx.chatgpt.entity.files
描述:
UploadFileResponse() - Constructor for class com.unfbx.chatgpt.entity.files.UploadFileResponse
 
URL - com.unfbx.chatgpt.entity.images.ResponseFormat
 
Usage - Class in com.unfbx.chatgpt.entity.common
描述:
Usage() - Constructor for class com.unfbx.chatgpt.entity.common.Usage
 
USER - com.unfbx.chatgpt.entity.chat.BaseMessage.Role
 

V

valueOf(String) - Static method in enum com.unfbx.chatgpt.config.ChatGPTUrl
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.chat.BaseChatCompletion.Model
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.chat.BaseMessage.Role
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.chat.Content.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.chat.ResponseFormat.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.chat.tool.ToolCalls.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.chat.tool.ToolChoice.Choice
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.chat.tool.ToolChoiceObj.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.chat.tool.Tools.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.completions.Completion.Model
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.edits.Edit.Model
Deprecated.
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.embeddings.Embedding.EncodingFormat
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.embeddings.Embedding.Model
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.fineTune.FineTune.Model
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.fineTune.job.FineTuneJob.Model
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.images.Image.Model
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.images.Image.Quality
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.images.Image.Style
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.images.ResponseFormat
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.images.SizeEnum
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.moderations.Moderation.Model
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.Tts.TextToSpeech.Model
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.Tts.TtsFormat
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.Tts.TtsVoice
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.whisper.Whisper.Model
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.whisper.Whisper.ResponseFormat
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.unfbx.chatgpt.exception.CommonError
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.unfbx.chatgpt.config.ChatGPTUrl
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.chat.BaseChatCompletion.Model
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.chat.BaseMessage.Role
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.chat.Content.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.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.unfbx.chatgpt.entity.chat.tool.ToolCalls.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.chat.tool.ToolChoice.Choice
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.chat.tool.ToolChoiceObj.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.chat.tool.Tools.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.completions.Completion.Model
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.edits.Edit.Model
Deprecated.
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.embeddings.Embedding.EncodingFormat
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.embeddings.Embedding.Model
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.fineTune.FineTune.Model
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.fineTune.job.FineTuneJob.Model
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.images.Image.Model
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.images.Image.Quality
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.images.Image.Style
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.images.ResponseFormat
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.images.SizeEnum
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.moderations.Moderation.Model
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.Tts.TextToSpeech.Model
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.Tts.TtsFormat
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.Tts.TtsVoice
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.whisper.Whisper.Model
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.entity.whisper.Whisper.ResponseFormat
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.unfbx.chatgpt.exception.CommonError
Returns an array containing the constants of this enum type, in the order they are declared.
variationsImages(File) - Method in class com.unfbx.chatgpt.OpenAiClient
Creates a variation of a given image.
variationsImages(File, ImageVariations) - Method in class com.unfbx.chatgpt.OpenAiClient
Creates a variation of a given image.
variationsImages(MultipartBody.Part, Map<String, RequestBody>) - Method in interface com.unfbx.chatgpt.OpenAiApi
Creates a variation of a given image.
VERBOSE_JSON - com.unfbx.chatgpt.entity.whisper.Whisper.ResponseFormat
 
VIVID - com.unfbx.chatgpt.entity.images.Image.Style
 
VTT - com.unfbx.chatgpt.entity.whisper.Whisper.ResponseFormat
 

W

Whisper - Class in com.unfbx.chatgpt.entity.whisper
描述:语音转文字
Whisper() - Constructor for class com.unfbx.chatgpt.entity.whisper.Whisper
 
WHISPER_1 - com.unfbx.chatgpt.entity.whisper.Whisper.Model
 
Whisper.Model - Enum in com.unfbx.chatgpt.entity.whisper
 
Whisper.ResponseFormat - Enum in com.unfbx.chatgpt.entity.whisper
 
WhisperResponse - Class in com.unfbx.chatgpt.entity.whisper
描述:
WhisperResponse() - Constructor for class com.unfbx.chatgpt.entity.whisper.WhisperResponse
 
A B C D E F G H I J K L M N O P R S T U V W 
All Classes All Packages