mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-04-16 13:23:42 +00:00
fix: ollama兼容联网查询 知识库检索
This commit is contained in:
@@ -466,8 +466,8 @@ public class OpenAiStreamClient {
|
||||
* @since 1.1.3
|
||||
*/
|
||||
public ResponseBody textToSpeech(TextToSpeech textToSpeech){
|
||||
Call<ResponseBody> responseBody = this.openAiApi.textToSpeech(textToSpeech);
|
||||
try {
|
||||
Call<ResponseBody> responseBody = this.openAiApi.textToSpeech(textToSpeech);
|
||||
return responseBody.execute().body();
|
||||
} catch (IOException e) {
|
||||
throw new BaseException("文本转语音(同步)失败: "+e.getMessage());
|
||||
|
||||
@@ -26,6 +26,11 @@ public class ChatRequest {
|
||||
*/
|
||||
private String prompt;
|
||||
|
||||
/**
|
||||
* 系统提示词
|
||||
*/
|
||||
private String sysPrompt;
|
||||
|
||||
/**
|
||||
* 是否开启流式对话
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user