123
This commit is contained in:
1 parent
07f5922a7d
commit
90d74de0d8
5 files changed
+130
No files matched your search
@@ -0,0 +1,22 @@
|
||||
package com.ruoyi.system.controller;
|
||||
|
||||
import com.ruoyi.system.service.DeepSeekService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/deepseek")
|
||||
public class DeepSeekController {
|
||||
@Autowired
|
||||
private DeepSeekService deepSeekService;
|
||||
@GetMapping("/stock")
|
||||
public String stock(String code) {
|
||||
|
||||
String prompt =
|
||||
"分析股票 " + code +
|
||||
" 的投资价值";
|
||||
return deepSeekService.chat(prompt);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user