JavaGPT调用 ChatGPT API 接口的 Java GUI

联合创作 · 2023-09-26

JavaGPT 是一个调用 ChatGPT API 接口的 Java GUI。

特性:

  • 聊天流
    • 就像网站一样,响应会实时生成
    • 你可以在响应进行时终止响应
  • 聊天记录
    • 查看以前的聊天记录并与之互动
    • 将聊天记录保存为 .json,便于外部修改和查看
    • 可通过“加载聊天”按钮访问

 

  • 聊天标题
    • 自动生成标题,例如 ChatGPT 网站
    • 可手动命名聊天
  • 恢复聊天
    • 能够取消之前的聊天提示和回复
    • 你可以多次恢复
  • HTML 查看器
    • 以 HTML 格式查看你的聊天内容
    • 支持 Markdown 语言语法

 

  • 导入预制提示
  • 将聊天记录保存到文件
  • 支持 ChatGPT 4 和 3.5 模型
  • 跨平台

配置示例

apikey=ENTER_CHAT_GPT_API_KEY_HERE
model=gpt-3.5-turbo		#Model used for ChatGPT Client (Supported Models: gpt-4, gpt-3.5-turbo, etc) > All supported models here "https://platform.openai.com/docs/models/gpt-3-5"
maxTokens=1024			#Max ammount of tokens allowed per ChatGPT API request
timeout=30			#Adjust allowed wait time for prompt response from ChatGPT API
autosave=true			#Adjust wether chats will save automatically (Necessary for chat history to work properly)
autotitle=true			#Adjusts wether new chats will automatically generate file name titles based on the context of the chat
autoscroll=true			#Adjusts wether chat will scroll as new text is added
EnterToSubmit=true		#Adjusts wether the Enter key should be used to submit or to create new lines
chat_location_override=		#Overrides default "chat_history" folder path (Original path is set to the location of the jar file on runtime)
WindowSize=			#Adjusts JFrame (Window) size. Options: small,medium,large (Set to "medium" by default)
Theme=dark			#Themes JFrame (Window) to set config. Options: dark,light

要求

  • Java 8 或更高版本
浏览 4
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报