| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractAgent.StreamAgentLlmCallBack
LLM流式输出转换
|
| Modifier and Type | Method and Description |
|---|---|
void |
LLM.setStreamCallback(StreamCallBack streamCallback)
设置流式接口回调函数
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.nio.client.methods.AsyncCharConsumer<org.apache.http.HttpResponse> |
StreamHelper.getAsyncConsumer(StreamCallBack streamCallBack,
String callBackId,
List<PanguChatChunk> panguChatChunks) |
static org.apache.http.nio.client.methods.AsyncCharConsumer<org.apache.http.HttpResponse> |
StreamHelper.getAsyncConsumer(StreamCallBack streamCallBack,
String callBackId,
List<PanguChatChunk> panguChatChunks,
List<String> eventChunks) |
static org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> |
StreamHelper.getCallBack(StreamCallBack streamCallBack,
String callBackId,
org.apache.http.client.methods.HttpPost httpPost) |
| Modifier and Type | Method and Description |
|---|---|
GalleryChatResp |
GalleryClient.createStreamChat(String prompt,
StreamCallBack streamCallBack)
流式问答接口
|
GalleryChatResp |
GalleryClient.createStreamChat(String prompt,
StreamCallBack streamCallBack,
List<List<String>> history)
流式问答接口
|
| Modifier and Type | Method and Description |
|---|---|
OpenAIChatResp |
OpenAIClient.createStreamChat(List<OpenAIChatMessage> messages,
StreamCallBack streamCallBack)
流式调用chat接口
|
OpenAIChatResp |
OpenAIClient.createStreamChat(OpenAIChatReq request,
StreamCallBack streamCallBack)
标准流式调用chat接口
|
OpenAIChatResp |
OpenAIClient.createStreamChat(String prompt,
StreamCallBack streamCallBack)
流式调用chat接口
|
| Modifier and Type | Method and Description |
|---|---|
PanguChatResp |
PanguClient.createStreamChat(List<PanguChatMessage> messages,
StreamCallBack streamCallBack)
流式调用 pangu chat接口
|
PanguChatResp |
PanguClient.createStreamChat(PanguChatReq request,
StreamCallBack streamCallBack)
标准流式调用 pangu chat接口
|
PanguChatResp |
PanguClient.createStreamChat(String prompt,
StreamCallBack streamCallBack)
流式调用 pangu chat接口
|
| Modifier and Type | Field and Description |
|---|---|
protected StreamCallBack |
AbstractLLM.streamCallBack |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractLLM.setStreamCallback(StreamCallBack streamCallback) |
Copyright © 2024. All rights reserved.