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
All Classes All Packages
All Classes All Packages
A
- ADA - com.unfbx.chatgpt.entity.fineTune.FineTune.Model
- 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.
- ASSISTANT - com.unfbx.chatgpt.entity.chat.Message.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
B
- B64_JSON - com.unfbx.chatgpt.entity.images.ResponseFormat
- BABBAGE - com.unfbx.chatgpt.entity.fineTune.FineTune.Model
- 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
- 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.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.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.OpenAiClient.Builder
- Builder() - Constructor for class com.unfbx.chatgpt.OpenAiStreamClient.Builder
C
- cancelFineTune(String) - Method in interface com.unfbx.chatgpt.OpenAiApi
-
取消微调作业
- cancelFineTune(String) - Method in class com.unfbx.chatgpt.OpenAiClient
-
取消微调作业
- 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(ChatCompletion) - Method in class com.unfbx.chatgpt.OpenAiClient
-
最新版的GPT-3.5 chat completion 更加贴近官方网站的问答模型
- chatCompletion(List<Message>) - Method in class com.unfbx.chatgpt.OpenAiClient
-
简易版
- ChatCompletion - Class in com.unfbx.chatgpt.entity.chat
-
描述: chat模型参数
- ChatCompletion() - Constructor for class com.unfbx.chatgpt.entity.chat.ChatCompletion
- ChatCompletion.Model - Enum in com.unfbx.chatgpt.entity.chat
-
最新模型参考官方文档: 官方稳定模型列表
- ChatCompletionResponse - Class in com.unfbx.chatgpt.entity.chat
-
描述: chat答案类
- ChatCompletionResponse() - Constructor for class com.unfbx.chatgpt.entity.chat.ChatCompletionResponse
- 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
- 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.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.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.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.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
- 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
- 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_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
-
构造方法
- 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
- edit(Edit) - Method in class com.unfbx.chatgpt.OpenAiClient
-
文本修改
- Edit - Class in com.unfbx.chatgpt.entity.edits
-
描述:
- Edit() - Constructor for class com.unfbx.chatgpt.entity.edits.Edit
- Edit.Model - Enum in com.unfbx.chatgpt.entity.edits
- 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
-
Creates a new edit for the provided input, instruction, and parameters.
- Embedding - Class in com.unfbx.chatgpt.entity.embeddings
-
描述:
- Embedding() - Constructor for class com.unfbx.chatgpt.entity.embeddings.Embedding
- 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
- 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
-
创建微调作业
- fineTune(FineTune) - Method in class com.unfbx.chatgpt.OpenAiClient
-
创建微调模型
- fineTune(String) - Method in class com.unfbx.chatgpt.OpenAiClient
-
创建微调模型
- 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
- fineTuneEvents(String) - Method in interface com.unfbx.chatgpt.OpenAiApi
-
微调作业事件列表
- fineTuneEvents(String) - Method in class com.unfbx.chatgpt.OpenAiClient
-
微调作业事件列表
- 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
-
微调作业集合
- fineTunes() - Method in class com.unfbx.chatgpt.OpenAiClient
-
微调模型列表
- FUNCTION - com.unfbx.chatgpt.entity.chat.Message.Role
- functionCall(FunctionCall) - Method in class com.unfbx.chatgpt.entity.chat.Message.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.ChatCompletion.Model
-
gpt-3.5-turbo
- GPT_3_5_TURBO_0301 - com.unfbx.chatgpt.entity.chat.ChatCompletion.Model
-
Deprecated.
- GPT_3_5_TURBO_0613 - com.unfbx.chatgpt.entity.chat.ChatCompletion.Model
-
gpt-3.5-turbo-0613 支持函数
- GPT_3_5_TURBO_16K - com.unfbx.chatgpt.entity.chat.ChatCompletion.Model
-
gpt-3.5-turbo-16k 超长上下文
- GPT_3_5_TURBO_16K_0613 - com.unfbx.chatgpt.entity.chat.ChatCompletion.Model
-
gpt-3.5-turbo-16k-0613 超长上下文 支持函数
- GPT_4 - com.unfbx.chatgpt.entity.chat.ChatCompletion.Model
-
GPT4.0
- GPT_4_0314 - com.unfbx.chatgpt.entity.chat.ChatCompletion.Model
-
Deprecated.
- GPT_4_0613 - com.unfbx.chatgpt.entity.chat.ChatCompletion.Model
-
gpt-4-0613,支持函数
- GPT_4_32K - com.unfbx.chatgpt.entity.chat.ChatCompletion.Model
-
GPT4.0 超长上下文
- GPT_4_32K_0314 - com.unfbx.chatgpt.entity.chat.ChatCompletion.Model
-
临时模型,不建议使用,2023年9 月 13 日将被弃用
- GPT_4_32K_0613 - com.unfbx.chatgpt.entity.chat.ChatCompletion.Model
-
gpt-4-0613,支持函数
- Grants - Class in com.unfbx.chatgpt.entity.billing
-
描述:
- Grants() - Constructor for class com.unfbx.chatgpt.entity.billing.Grants
H
- HyperParam - Class in com.unfbx.chatgpt.entity.fineTune
- HyperParam() - Constructor for class com.unfbx.chatgpt.entity.fineTune.HyperParam
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
- 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
- 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
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
M
- Message - Class in com.unfbx.chatgpt.entity.chat
-
描述:
- Message() - Constructor for class com.unfbx.chatgpt.entity.chat.Message
- Message(String, String, String, FunctionCall) - Constructor for class com.unfbx.chatgpt.entity.chat.Message
-
构造函数
- Message.Builder - Class in com.unfbx.chatgpt.entity.chat
- Message.Role - Enum 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
-
文本审核
- 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
- 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配置参数实现飞书、钉钉、企业微信、邮箱预警等
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
- 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
- onFailure(EventSource, Throwable, Response) - Method in class com.unfbx.chatgpt.sse.ConsoleEventSourceListener
- onOpen(EventSource, Response) - Method in class com.unfbx.chatgpt.sse.ConsoleEventSourceListener
- 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
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
R
- ResponseFormat - Enum in com.unfbx.chatgpt.entity.images
-
描述:
- 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
-
检索微调作业
- retrieveFineTune(String) - Method in class com.unfbx.chatgpt.OpenAiClient
-
检索微调作业
- RETRY_ERROR - com.unfbx.chatgpt.exception.CommonError
- role(Message.Role) - Method in class com.unfbx.chatgpt.entity.chat.Message.Builder
- role(String) - Method in class com.unfbx.chatgpt.entity.chat.Message.Builder
S
- 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
- setInput(List<String>) - Method in class com.unfbx.chatgpt.entity.moderations.Moderation
- setInstruction(String) - Method in class com.unfbx.chatgpt.entity.edits.Edit
- setLearningRateMultiplier(Double) - Method in class com.unfbx.chatgpt.entity.fineTune.FineTune
- setModel(Edit.Model) - Method in class com.unfbx.chatgpt.entity.edits.Edit
- 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
- setN(Integer) - Method in class com.unfbx.chatgpt.entity.images.Image
- 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.Image
- setPrompt(String) - Method in class com.unfbx.chatgpt.entity.images.ImageEdit
- setPromptLossWeight(Double) - Method in class com.unfbx.chatgpt.entity.fineTune.FineTune
- setResponseFormat(ResponseFormat) - Method in class com.unfbx.chatgpt.entity.images.Image
- 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.Image
- 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
- setTopP(Double) - Method in class com.unfbx.chatgpt.entity.edits.Edit
- 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.Image
- 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
- size_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
- streamChatCompletion(ChatCompletion, EventSourceListener) - Method in class com.unfbx.chatgpt.OpenAiStreamClient
-
流式输出,最新版的GPT-3.5 chat completion 更加贴近官方网站的问答模型
- streamChatCompletion(List<Message>, EventSourceListener) - Method in class com.unfbx.chatgpt.OpenAiStreamClient
-
流式输出,最新版的GPT-3.5 chat completion 更加贴近官方网站的问答模型
- 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.Message.Role
T
- TEXT - com.unfbx.chatgpt.entity.whisper.Whisper.ResponseFormat
- TEXT_DAVINCI_EDIT_001 - com.unfbx.chatgpt.entity.edits.Edit.Model
- 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
- 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
- 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
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.Message.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.ChatCompletion.Model
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.unfbx.chatgpt.entity.chat.Message.Role
-
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
-
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.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.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.ChatCompletion.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.Message.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.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
-
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.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.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
- 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
All Classes All Packages