move request_builder into internal pkg (#304) (#329)

* move request_builder into internal pkg (#304)

* add some test for internal.RequestBuilder

* add a test for openai.GetEngine
This commit is contained in:
渡邉祐一 / Yuichi Watanabe
2023-05-31 17:01:42 +09:00
committed by GitHub
parent 62eb4beed2
commit 61ba5f3369
16 changed files with 273 additions and 208 deletions

View File

@@ -77,7 +77,7 @@ func (c *Client) CreateChatCompletion(
return
}
req, err := c.requestBuilder.build(ctx, http.MethodPost, c.fullURL(urlSuffix, request.Model), request)
req, err := c.requestBuilder.Build(ctx, http.MethodPost, c.fullURL(urlSuffix, request.Model), request)
if err != nil {
return
}