wenxin-starter
wenxin-starter copied to clipboard
一款文心一言&文心千帆大模型的高性能springboot-starter,支持连续对话(流式返回)、Prompt模板、文生图等,内置连续对话记录,支持消息记录导出。 WenXinYiYin&WENXINWORKSHOP.
@PostMapping("/param/chats/{model}") public Mono pChatCont(@RequestBody ChatErnieRequest chatErnieRequest, @PathVariable String model) { Mono chats = chatClientFactory.getClient(model).chats(chatErnieRequest, chatErnieRequest.getUserId()); return chats; },已填写配置文件,未抛出异常(1.0的demo能使用)
首先要函数式调用,使用ChatErnieRequest类 ``` public class ChatErnieRequest extends ChatBaseRequest { private static final Logger log = LoggerFactory.getLogger(ChatErnieRequest.class); private Float temperature; private Float topP; private Float penaltyScore; private List functions; ...... } ```...
请教大佬: 版本:2.0.0-beta4 传msgUid,调用chatClient.chatsStream(message, msgUid),报错如下: 2024-07-26 13:16:51.676 [reactor-http-nio-2] ERROR reactor.netty.channel.ChannelOperationsHandler:324 - [be2b9354-1, L:/192.168.0.107:63218 - R:aip.baidubce.com/111.206.210.12:443] Error was received while reading the incoming data. The connection will be closed. java.lang.NullPointerException: null at...