From 9044b02d27949fef8e4c963f5f7d30a123381a42 Mon Sep 17 00:00:00 2001 From: Anton Kuznetcov Date: Tue, 28 Oct 2025 14:24:22 +0600 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B2=20=D0=B2=D0=B5=D1=82=D0=BA?= =?UTF-8?q?=D0=B5=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gpt/providers.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gpt/providers.go b/gpt/providers.go index e809d30..6a01d67 100644 --- a/gpt/providers.go +++ b/gpt/providers.go @@ -124,6 +124,11 @@ func (p *ProxyAPIProvider) Chat(messages []Chat) (string, error) { req.Header.Set("Authorization", "Bearer "+p.JWTToken) } + if config.AppConfig.MainFlags.Debug { + fmt.Println("Chat URL: ", p.BaseURL+config.AppConfig.Server.ProxyUrl) + fmt.Println("ProxyChatRequest: ", req) + } + resp, err := p.HTTPClient.Do(req) if err != nil { return "", fmt.Errorf("ошибка выполнения запроса: %w", err)