Исправления в ветке 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

@@ -156,9 +156,11 @@ func handleExecute(w http.ResponseWriter, r *http.Request) {
// getCommand выполняет запрос к AI
func getCommand(gpt3 gpt.Gpt3, prompt string) (string, float64) {
gpt3.InitKey()
config.DebugLogf("[WEB-QUERY] %s", prompt)
start := time.Now()
response := gpt3.Completions(prompt)
elapsed := time.Since(start).Seconds()
config.DebugLogf("[TIMING] elapsed=%.2fs", elapsed)
return response, elapsed
}