update gpt

This commit is contained in:
yutou 2023-10-26 14:19:18 +08:00
parent b177561df4
commit 5af58336ec

View File

@ -13,8 +13,9 @@ import java.util.Map;
public class BaiduGPTManager { public class BaiduGPTManager {
private static int MAX_MESSAGE = 5; private static int MAX_MESSAGE = 5;
private static BaiduGPTManager manager; private static BaiduGPTManager manager;
//private static final String url = "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions"; private static final String url = "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions";
private static final String url = "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions_pro"; //4.0
//private static final String url = "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions_pro";
private static final String AppID = "36668599"; private static final String AppID = "36668599";
private static final String ApiKey = "eyHo6K2ILBm7i378701Az1eT"; private static final String ApiKey = "eyHo6K2ILBm7i378701Az1eT";
private static final String SecretKey = "U4vXt8AOTM9FgB0Omft5IOh6vwhzoDgZ"; private static final String SecretKey = "U4vXt8AOTM9FgB0Omft5IOh6vwhzoDgZ";