Skip to content

Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.

Remove the LLM proxy

wulien42f34ff34d99
diff --git a/pkg/openai/init.go b/pkg/openai/init.go
index d15dfe40..901e0496 100644
--- a/pkg/openai/init.go
+++ b/pkg/openai/init.go
@@ -2,8 +2,6 @@ package openai
import (
"github.com/sashabaranov/go-openai"
- "krillin-ai/config"
- "net/http"
)
type Client struct {
@@ -16,15 +14,6 @@ func NewClient(baseUrl, apiKey, proxyAddr string) *Client {
cfg.BaseURL = baseUrl
}
- if proxyAddr != "" {
- transport := &http.Transport{
- Proxy: http.ProxyURL(config.Conf.App.ParsedProxy),
- }
- cfg.HTTPClient = &http.Client{
- Transport: transport,
- }
- }
-
client := openai.NewClientWithConfig(cfg)
return &Client{client: client}
}