|
@@ -16,7 +16,6 @@ type cChatGptPool struct {
|
|
|
}
|
|
|
|
|
|
func NewChatGptPool(pool int) *cChatGptPool {
|
|
|
- fmt.Println("pool", pool)
|
|
|
c := &cChatGptPool{
|
|
|
GPTPool: make(chan bool, pool),
|
|
|
}
|
|
@@ -27,7 +26,6 @@ func NewChatGptPool(pool int) *cChatGptPool {
|
|
|
}
|
|
|
|
|
|
func (c *cChatGptPool) Get() error {
|
|
|
- fmt.Println("tttt", g.Config().MustGet(gctx.New(), "chat.api.waitTimeout", 10).Int())
|
|
|
select {
|
|
|
case <-c.GPTPool:
|
|
|
return nil
|