新模型替换

This commit is contained in:
2025-11-16 22:53:11 +08:00
parent bc4670ad59
commit d56009ef86
16 changed files with 1595 additions and 72 deletions

View File

@@ -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();

View File

@@ -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) {