| | |
| | | import com.yb.entity.ResponseEntity; |
| | | import okhttp3.*; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | return null ; |
| | | } |
| | | |
| | | @Async |
| | | public String requesFast(String message){ |
| | | System.out.println("fastgpt:"+message) ; |
| | | OkHttpClient client = new OkHttpClient(); |
| | |
| | | int index = rep.indexOf("flowResponses"); |
| | | int index_s = rep.indexOf("data", index); |
| | | String data = rep.substring(index_s + 5); |
| | | System.out.println(data); |
| | | System.out.println("data is ok...."); |
| | | return data; |
| | | }else{ |
| | | return rep ; |