Remove default timeout and search API (#51)

* remove 1 minute timeout

* remove deprecated search api test

* remove search api
This commit is contained in:
sashabaranov
2023-01-07 00:22:39 +04:00
committed by GitHub
parent 2c55a49a34
commit cf013d3eb5
3 changed files with 1 additions and 75 deletions

5
api.go
View File

@@ -4,15 +4,12 @@ import (
"encoding/json"
"fmt"
"net/http"
"time"
)
const apiURLv1 = "https://api.openai.com/v1"
func newTransport() *http.Client {
return &http.Client{
Timeout: time.Minute,
}
return &http.Client{}
}
// Client is OpenAI GPT-3 API client.