Исправления в ветке main

This commit is contained in:
2026-10-22 12:42:32 +06:00
parent 933e5ccb58
commit 9b05edc263
31 changed files with 2433 additions and 114 deletions

View File

@@ -88,7 +88,7 @@ func handleSaveResult(w http.ResponseWriter, r *http.Request) {
// Генерируем имя файла
timestamp := time.Now().Format("2006-01-02_15-04-05")
filename := fmt.Sprintf("gpt_request_%s_%s.md", req.Model, timestamp)
filename := fmt.Sprintf("gpt_request_%s_%s.md", config.SafeFileName(req.Model), timestamp)
filePath := path.Join(config.AppConfig.ResultFolder, filename)
title := truncateTitle(req.Prompt)