💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
~~~ /** * 饥汉模式 * @author Administrator * */ public class Singleton{ private Singleton() { } private static Singleton instance = null;// new SingleTon(); public static synchronized Singleton getInstance() { if (instance == null) { instance = new Singleton(); } return instance; } } ~~~