public abstract class PalmModelExecutor<T> extends Object implements Executor, ParameterHandler<T>, ResultHandler
| 构造器和说明 |
|---|
PalmModelExecutor(Configuration configuration) |
| 限定符和类型 | 方法和说明 |
|---|---|
okhttp3.sse.EventSource |
completions(CompletionRequest completionRequest,
okhttp3.sse.EventSourceListener eventSourceListener)
问答模式,流式反馈
|
ImageResponse |
genImages(ImageRequest imageRequest)
生成图片
|
ImageResponse |
genImages(String apiHostByUser,
String apiKeyByUser,
ImageRequest imageRequest)
生成图片
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompletions, pictureUnderstanding, pictureUnderstandinggetParameterObjecteventSourceListenerpublic PalmModelExecutor(Configuration configuration)
public okhttp3.sse.EventSource completions(CompletionRequest completionRequest, okhttp3.sse.EventSourceListener eventSourceListener) throws Exception
Executorcompletions 在接口中 ExecutorcompletionRequest - 请求信息eventSourceListener - 实现监听;通过监听的 onEvent 方法接收数据Exception - 异常public ImageResponse genImages(ImageRequest imageRequest)
Executorpublic ImageResponse genImages(String apiHostByUser, String apiKeyByUser, ImageRequest imageRequest)
ExecutorCopyright © 2023. All rights reserved.