Skip to content

Commit fc6fbf4

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents f670327 + 3970635 commit fc6fbf4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

chat/common/openai/draw.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ type Draw struct {
2424
Proxy string
2525
}
2626

27-
func NewOpenaiDraw(key, proxy string) *Draw {
27+
func NewOpenaiDraw(host, key, proxy string) *Draw {
2828
return &Draw{
29-
Host: "https://api.openai.com",
29+
Host: host,
3030
APIKey: key,
3131
Proxy: proxy,
3232
}

chat/service/chat/api/internal/logic/chatlogic.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ func (p CommendDraw) exec(l *ChatLogic, req *types.ChatReq) bool {
821821
)
822822
} else if l.svcCtx.Config.Draw.Company == draw.OPENAI {
823823
d = openai.NewOpenaiDraw(
824+
l.svcCtx.Config.Draw.OpenAi.Host,
824825
l.svcCtx.Config.Draw.OpenAi.Key,
825826
l.svcCtx.Config.Draw.OpenAi.Proxy,
826827
)

0 commit comments

Comments
 (0)