Skip navigation links
A B C D E F G H I L M N O P 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
添加对话
Api - Interface in com.plexpt.chatgpt.api
 
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
 

B

balance() - Method in class com.plexpt.chatgpt.ChatGPT
余额查询
balance(String) - Static method in class com.plexpt.chatgpt.ChatGPT
余额查询
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
 

C

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 - Enum in com.plexpt.chatgpt.entity.chat
 
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
 
check(String) - Static method in class com.plexpt.chatgpt.ConsoleChatGPT
 
choices - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletionResponse
 
code - Variable in class com.plexpt.chatgpt.entity.BaseResponse.Error
 
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.billing - package com.plexpt.chatgpt.entity.billing
 
com.plexpt.chatgpt.entity.chat - package com.plexpt.chatgpt.entity.chat
 
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
 
complete(SseEmitter) - Method in class com.plexpt.chatgpt.util.SseHelper
 
completionTokens - Variable in class com.plexpt.chatgpt.entity.billing.Usage
 
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
 
content - Variable in class com.plexpt.chatgpt.entity.chat.Message
 
context - Static variable in class com.plexpt.chatgpt.util.ChatContextHolder
 
countTokens() - Method in class com.plexpt.chatgpt.entity.chat.ChatCompletion
 
created - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletionResponse
 
creditGrants() - Method in interface com.plexpt.chatgpt.api.Api
余额查询
creditGrants() - Method in class com.plexpt.chatgpt.ChatGPT
余额查询
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
 
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
 
delta - Variable in class com.plexpt.chatgpt.entity.chat.ChatChoice
请求参数stream为true返回是delta
description - Variable in class com.plexpt.chatgpt.entity.chat.ChatFunction
 

E

effectiveAt - Variable in class com.plexpt.chatgpt.entity.billing.Datum
生效时间戳
encodingRegistry - Static variable in class com.plexpt.chatgpt.util.TokensUtil
 
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

finishReason - Variable in class com.plexpt.chatgpt.entity.chat.ChatChoice
 
formatDate(Date) - Static method in class com.plexpt.chatgpt.ChatGPT
 
frequencyPenalty - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
-2.0 ~~ 2.0
function_call - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
auto
functionCall - Variable in class com.plexpt.chatgpt.entity.chat.Message
 
FunctionCallResult - Class in com.plexpt.chatgpt.entity.chat
 
FunctionCallResult() - Constructor for class com.plexpt.chatgpt.entity.chat.FunctionCallResult
 
functions - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
 

G

get(String) - Static method in class com.plexpt.chatgpt.util.ChatContextHolder
获取对话历史
getBalance(String) - Static method in class com.plexpt.chatgpt.ConsoleChatGPT
 
getInput(String) - Static method in class com.plexpt.chatgpt.ConsoleChatGPT
 
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
赠送金额:美元
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
 
index - Variable in class com.plexpt.chatgpt.entity.chat.ChatChoice
 
init() - Method in class com.plexpt.chatgpt.ChatGPT
初始化
init() - Method in class com.plexpt.chatgpt.ChatGPTStream
初始化

L

lastMessage - Variable in class com.plexpt.chatgpt.listener.AbstractStreamListener
 
logitBias - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
 

M

main(String[]) - Static method in class com.plexpt.chatgpt.ConsoleChatGPT
 
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.chat.ChatCompletion
 
Model() - Constructor for enum com.plexpt.chatgpt.entity.chat.ChatCompletion.Model
 
model - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletionResponse
 
modelEncodingMap - Static variable in class com.plexpt.chatgpt.util.TokensUtil
 

N

n - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
结果数。
name - Variable in enum com.plexpt.chatgpt.entity.chat.ChatCompletion.Model
 
name - Variable in class com.plexpt.chatgpt.entity.chat.ChatFunction
 
name - Variable in class com.plexpt.chatgpt.entity.chat.FunctionCallResult
 
name - Variable in class com.plexpt.chatgpt.entity.chat.Message
 

O

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
 
of(String) - Static method in class com.plexpt.chatgpt.entity.chat.Message
 
ofAssistant(String) - Static method in class com.plexpt.chatgpt.entity.chat.Message
 
ofFunction(String) - Static method in class com.plexpt.chatgpt.entity.chat.Message
 
ofSystem(String) - Static method in class com.plexpt.chatgpt.entity.chat.Message
 
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
 
onComplate - 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

param - Variable in class com.plexpt.chatgpt.entity.BaseResponse.Error
 
parameters - Variable in class com.plexpt.chatgpt.entity.chat.ChatFunction
 
presencePenalty - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
 
promptTokens - Variable in class com.plexpt.chatgpt.entity.billing.Usage
 
properties - Variable in class com.plexpt.chatgpt.entity.chat.ChatFunction.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
 

R

remove(String) - Static method in class com.plexpt.chatgpt.util.ChatContextHolder
清除对话
required - Variable in class com.plexpt.chatgpt.entity.chat.ChatFunction.ChatParameter
 
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

send(SseEmitter, Object) - Method in class com.plexpt.chatgpt.util.SseHelper
 
socks5(String, int) - Static method in class com.plexpt.chatgpt.util.Proxys
socks5 代理
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
 
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
流式输出
subscription() - Method in interface com.plexpt.chatgpt.api.Api
余额查询
SubscriptionData - Class in com.plexpt.chatgpt.entity.billing
 
SubscriptionData() - Constructor for class com.plexpt.chatgpt.entity.billing.SubscriptionData
 

T

temperature - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
使用什么取样温度,0到2之间。越高越奔放。越低越保守。
timeout - Variable in class com.plexpt.chatgpt.ChatGPT
超时 默认300
timeout - Variable in class com.plexpt.chatgpt.ChatGPTStream
连接超时
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
 
topP - Variable in class com.plexpt.chatgpt.entity.chat.ChatCompletion
0-1 建议0.9 不要同时改这个和temperature
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
总使用金额:美元
type - Variable in class com.plexpt.chatgpt.entity.BaseResponse.Error
 
type - Variable in class com.plexpt.chatgpt.entity.chat.ChatFunction.ChatParameter
 

U

usage(String, String) - Method in interface com.plexpt.chatgpt.api.Api
余额查询
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
 
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
用户唯一值,确保接口不被重复调用

V

value - Variable in enum com.plexpt.chatgpt.entity.chat.Message.Role
 
valueOf(String) - Static method in enum com.plexpt.chatgpt.entity.chat.ChatCompletion.Model
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.
values() - Static method in enum com.plexpt.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.plexpt.chatgpt.entity.chat.Message.Role
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G H I L M N O P R S T U V 
Skip navigation links

Copyright © 2023. All rights reserved.