Fix: /v1 chat endpoint; linter

This commit is contained in:
Grail Finder
2025-02-11 09:21:46 +03:00
parent 5468053908
commit f0fb6a3137
6 changed files with 41 additions and 28 deletions

View File

@@ -2,7 +2,7 @@ package main
import (
"flag"
"fmt"
"strconv"
"unicode"
"github.com/rivo/tview"
@@ -30,7 +30,7 @@ func main() {
flag.Parse()
if apiPort != nil && *apiPort > 3000 {
srv := Server{}
srv.ListenToRequests(fmt.Sprintf("%d", *apiPort))
srv.ListenToRequests(strconv.Itoa(*apiPort))
return
}
pages.AddPage("main", flex, true, true)