public class GalleryClient extends Object
| Constructor and Description |
|---|
GalleryClient()
初始化
|
GalleryClient(LLMConfig llmConfig)
初始化
|
| Modifier and Type | Method and Description |
|---|---|
GalleryChatResp |
createChat(GalleryChatReq req)
基础问答接口
|
GalleryChatResp |
createChat(String prompt)
基础问答
|
GalleryChatResp |
createChat(String prompt,
List<List<String>> history)
基础问答
|
GalleryChatResp |
createStreamChat(String prompt,
StreamCallBack streamCallBack)
流式问答接口
|
GalleryChatResp |
createStreamChat(String prompt,
StreamCallBack streamCallBack,
List<List<String>> history)
流式问答接口
|
public GalleryClient()
public GalleryClient(LLMConfig llmConfig)
llmConfig - llm配置public GalleryChatResp createChat(String prompt)
prompt - promptpublic GalleryChatResp createChat(String prompt, List<List<String>> history)
prompt - prompthistory - 历史问答对public GalleryChatResp createChat(GalleryChatReq req)
req - 请求体public GalleryChatResp createStreamChat(String prompt, StreamCallBack streamCallBack)
prompt - promptstreamCallBack - 回调接口public GalleryChatResp createStreamChat(String prompt, StreamCallBack streamCallBack, List<List<String>> history)
prompt - promptstreamCallBack - 回调接口history - 历史问答对Copyright © 2024. All rights reserved.