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