潜蛰的博客

小程序
Chatgpt

chatgpt

上周花了点时间开发一个微信小程序,接入了ChatGpt接口。实现了简单的上下文对话。 核心代码 /** * 请求openai接口 * @param int $selType * @param $params * @return mixed * @throws GuzzleException|ApiException * @throws Exception */ protected function sendRequest(int $selType, $params) :mixed { // 每个账号最多五个key,…

2023年 3月 14日 0条评论 36点热度 0人点赞 latent 阅读全文

COPYRIGHT © 2023 pltrue.top. ALL RIGHTS RESERVED.

THEME KRATOS MADE BY VTROIS

赣ICP备19000975号