项目访问修改
This commit is contained in:
1
.gitea/workflows/deploy.yml
Normal file
1
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
4
pom.xml
4
pom.xml
@@ -11,9 +11,9 @@
|
|||||||
<relativePath/>
|
<relativePath/>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<groupId>org.example</groupId>
|
<groupId>cn.ourhonour</groupId>
|
||||||
<artifactId>QAI</artifactId>
|
<artifactId>QAI</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0</version>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@@ -6,10 +6,7 @@ import com.gearwenxin.client.ernie.ErnieBotClient;
|
|||||||
import com.gearwenxin.entity.chatmodel.ChatErnieRequest;
|
import com.gearwenxin.entity.chatmodel.ChatErnieRequest;
|
||||||
import com.gearwenxin.entity.response.ChatResponse;
|
import com.gearwenxin.entity.response.ChatResponse;
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
import reactor.core.publisher.Flux;
|
import reactor.core.publisher.Flux;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
@@ -18,6 +15,7 @@ import javax.annotation.Resource;
|
|||||||
* 文心一言的相关接口
|
* 文心一言的相关接口
|
||||||
* @author qiaoxiaoxu
|
* @author qiaoxiaoxu
|
||||||
*/
|
*/
|
||||||
|
@CrossOrigin
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/ernie")
|
@RequestMapping("/ernie")
|
||||||
public class ErnieBotController {
|
public class ErnieBotController {
|
||||||
|
Reference in New Issue
Block a user