www
Some checks failed
Flask 提示词大师 - CI/CD 流水线 / 代码质量检查 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 单元测试 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 集成测试 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 构建Docker镜像 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 部署到测试环境 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 部署到生产环境 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 部署监控系统 (push) Has been cancelled

This commit is contained in:
rjb
2026-03-02 00:29:52 +08:00
parent 1797b914a5
commit 4973b90d91

View File

@@ -89,9 +89,10 @@ public class MainViewModel extends AndroidViewModel {
resultLiveData.setValue("");
errorLiveData.setValue(null);
final String inputForOptimize = prompt;
executor.execute(() -> {
try {
PromptGenerator.OptimizeResult result = repository.optimizePrompt(prompt, 0.7f, 1000);
PromptGenerator.OptimizeResult result = repository.optimizePrompt(inputForOptimize, 0.7f, 1000);
String display = result.toDisplayText();
resultLiveData.postValue(display);
snackbarLiveData.postValue("提示词优化完成");