chore: update NewClient to use NewClientCompatibleWithResponses

### CHANGES

- Modify `NewClient` to call `NewClientCompatibleWithResponses`
- Add support for response handling in client initialization
This commit is contained in:
Kayvan Sylvan
2025-06-30 00:13:15 -07:00
parent 5b4cec81c3
commit baeadc2270

View File

@@ -17,7 +17,7 @@ import (
)
func NewClient() (ret *Client) {
return NewClientCompatible("OpenAI", "https://api.openai.com/v1", nil)
return NewClientCompatibleWithResponses("OpenAI", "https://api.openai.com/v1", true, nil)
}
func NewClientCompatible(vendorName string, defaultBaseUrl string, configureCustom func() error) (ret *Client) {