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