public class Gallery extends AbstractLLM<LLMRespGallery>
llmConfig, streamCallBack| Modifier and Type | Method and Description |
|---|---|
protected LLMRespGallery |
getLLMResponse(List<ConversationMessage> chatMessages,
LLMParamConfig llmParamConfig)
调用chat接口
|
protected LLMRespGallery |
getLLMResponseFromCache(String cache)
从缓存获取结果
|
ask, ask, ask, ask, askForObject, askForObject, getExistPrompt, getLLMConfig, needAddNewSystemMessage, setCache, setStreamCallbackpublic Gallery(LLMConfig llmConfig)
llmConfig - llm配置protected LLMRespGallery getLLMResponse(List<ConversationMessage> chatMessages, LLMParamConfig llmParamConfig)
AbstractLLMgetLLMResponse in class AbstractLLM<LLMRespGallery>chatMessages - LLM模型输入llmParamConfig - 模型参数配置protected LLMRespGallery getLLMResponseFromCache(String cache)
AbstractLLMgetLLMResponseFromCache in class AbstractLLM<LLMRespGallery>cache - 缓存Copyright © 2024. All rights reserved.