新模型替换
This commit is contained in:
@@ -101,7 +101,7 @@ public class ElevenLabsClient {
|
||||
CloseableHttpClient httpClient = HttpClients.createDefault();
|
||||
try {
|
||||
// 使用第一个可用语音进行文本转语音(澳洲本地女声)
|
||||
String firstVoiceId = "21m00Tcm4TlvDq8ikWAM";
|
||||
String firstVoiceId = "LwSYl3oLKw4IEbIEei6q";
|
||||
textToSpeech(inputText, firstVoiceId, outputFile,httpClient);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
|
||||
@@ -33,6 +33,9 @@ public class ChatGPTClient {
|
||||
@Value("${chatGpt.model}")
|
||||
private String model;
|
||||
|
||||
@Value("${chatGpt.modelQuestion}")
|
||||
private String modelQuestion;
|
||||
|
||||
@Value("${chatGpt.modelCV}")
|
||||
private String modelCV;
|
||||
|
||||
@@ -60,9 +63,11 @@ public class ChatGPTClient {
|
||||
if("CV".equals(type)){
|
||||
resultText = sendMessage(promptText, modelCV,objectMapper,client,role);
|
||||
}else if("QA".equals(type)){
|
||||
resultText = sendMessage(promptText, modelQuestion,objectMapper,client,role);
|
||||
} else if("PF".equals(type)){
|
||||
resultText = sendMessage(promptText, model,objectMapper,client,role);
|
||||
} else {
|
||||
resultText = sendMessage(promptText, model,objectMapper,client,role);
|
||||
}else {
|
||||
resultText = sendMessage(promptText, modelQuestion,objectMapper,client,role);
|
||||
}
|
||||
|
||||
} catch (IOException | InterruptedException e) {
|
||||
|
||||
Reference in New Issue
Block a user