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)
问答模式,流式反馈
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompletionsgetParameterObjecteventSourceListenerpublic PalmModelExecutor(Configuration configuration)
public okhttp3.sse.EventSource completions(CompletionRequest completionRequest, okhttp3.sse.EventSourceListener eventSourceListener) throws Exception
Executorcompletions 在接口中 ExecutorcompletionRequest - 请求信息eventSourceListener - 实现监听;通过监听的 onEvent 方法接收数据Exception - 异常Copyright © 2023. All rights reserved.