refactor: refactoring http request creation and sending (#395)
* refactoring http request creation and sending * fix lint error * increase the test coverage of client.go * refactor: Change the style of HTTPRequestBuilder.Build func to one-argument-per-line.
This commit is contained in:
committed by
GitHub
parent
157de0680f
commit
f1b66967a4
@@ -94,7 +94,7 @@ func TestRequestAuthHeader(t *testing.T) {
|
||||
az.OrgID = c.OrgID
|
||||
|
||||
cli := NewClientWithConfig(az)
|
||||
req, err := cli.newStreamRequest(context.Background(), "POST", "/chat/completions", nil, "")
|
||||
req, err := cli.newRequest(context.Background(), "POST", "/chat/completions")
|
||||
if err != nil {
|
||||
t.Errorf("Failed to create request: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user