| Package | Description |
|---|---|
| com.unfbx.chatgpt | |
| com.unfbx.chatgpt.sse |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<ChatCompletionResponse> |
OpenAiApi.chatCompletion(ChatCompletion chatCompletion)
最新版的GPT-3.5 chat completion 更加贴近官方网站的问答模型
|
io.reactivex.Single<ChatCompletionResponse> |
OpenAiApi.chatCompletion(ChatCompletion chatCompletion)
最新版的GPT-3.5 chat completion 更加贴近官方网站的问答模型
|
<R extends PluginParam,T> |
OpenAiClient.chatCompletionWithPlugin(ChatCompletion chatCompletion,
PluginAbstract<R,T> plugin)
插件问答简易版
默认取messages最后一个元素构建插件对话
默认模型:ChatCompletion.Model.GPT_3_5_TURBO_16K_0613
|
<R extends PluginParam,T> |
OpenAiClient.chatCompletionWithPlugin(ChatCompletion chatCompletion,
PluginAbstract<R,T> plugin)
插件问答简易版
默认取messages最后一个元素构建插件对话
默认模型:ChatCompletion.Model.GPT_3_5_TURBO_16K_0613
|
<R extends PluginParam,T> |
OpenAiStreamClient.streamChatCompletionWithPlugin(ChatCompletion chatCompletion,
okhttp3.sse.EventSourceListener eventSourceListener,
PluginAbstract<R,T> plugin)
插件问答简易版
默认取messages最后一个元素构建插件对话
默认模型:ChatCompletion.Model.GPT_3_5_TURBO_16K_0613
|
<R extends PluginParam,T> |
OpenAiStreamClient.streamChatCompletionWithPlugin(ChatCompletion chatCompletion,
okhttp3.sse.EventSourceListener eventSourceListener,
PluginAbstract<R,T> plugin)
插件问答简易版
默认取messages最后一个元素构建插件对话
默认模型:ChatCompletion.Model.GPT_3_5_TURBO_16K_0613
|
<R extends PluginParam,T> |
OpenAiStreamClient.streamChatCompletionWithPlugin(ChatCompletion chatCompletion,
okhttp3.sse.EventSourceListener eventSourceListener,
PluginListener pluginEventSourceListener,
PluginAbstract<R,T> plugin)
插件问答简易版
默认取messages最后一个元素构建插件对话
默认模型:ChatCompletion.Model.GPT_3_5_TURBO_16K_0613
|
<R extends PluginParam,T> |
OpenAiStreamClient.streamChatCompletionWithPlugin(ChatCompletion chatCompletion,
okhttp3.sse.EventSourceListener eventSourceListener,
PluginListener pluginEventSourceListener,
PluginAbstract<R,T> plugin)
插件问答简易版
默认取messages最后一个元素构建插件对话
默认模型:ChatCompletion.Model.GPT_3_5_TURBO_16K_0613
|
| Constructor and Description |
|---|
DefaultPluginListener(OpenAiStreamClient client,
okhttp3.sse.EventSourceListener eventSourceListener,
PluginAbstract plugin,
ChatCompletion chatCompletion) |
DefaultPluginListener(OpenAiStreamClient client,
okhttp3.sse.EventSourceListener eventSourceListener,
PluginAbstract plugin,
ChatCompletion chatCompletion) |
PluginListener(OpenAiStreamClient client,
okhttp3.sse.EventSourceListener eventSourceListener,
PluginAbstract<R,T> plugin,
ChatCompletion chatCompletion)
构造方法必备四个元素
|
PluginListener(OpenAiStreamClient client,
okhttp3.sse.EventSourceListener eventSourceListener,
PluginAbstract<R,T> plugin,
ChatCompletion chatCompletion)
构造方法必备四个元素
|
Copyright © 2023 grt1228. All rights reserved.