# OPENAI-TEST **Repository Path**: stan2nast/openai-test ## Basic Information - **Project Name**: OPENAI-TEST - **Description**: 学习https://blog.csdn.net/luoxueyong/article/details/128365237 - **Primary Language**: Java - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-02-09 - **Last Updated**: 2023-03-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 项目介绍 本项目是基于SpringBoot3.0封装的OpenAi快速开发类,支持49种场景调用。 注意:该项目还未提交到中央仓库,因此你需要下载源码到本地安装。 ### 使用步骤 #### 1、导入依赖 ```xml cn.gjsm openai-spring-boot-starter 1.0-SNAPSHOT ``` #### 2、配置秘钥 在application.yml中配置如下参数: ```yml openai: token: 你的秘钥 timeout: 5000 // 超时时间 ``` #### 3、运行实例 测试类中验证: ![image-20230209123410955](./openai-starter-test/src/main/resources/images/openai_example.png)