We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d02119 commit 5162adbCopy full SHA for 5162adb
config.go
@@ -26,6 +26,10 @@ const AzureAPIKeyHeader = "api-key"
26
27
const defaultAssistantVersion = "v2" // upgrade to v2 to support vector store
28
29
+type HTTPDoer interface {
30
+ Do(req *http.Request) (*http.Response, error)
31
+}
32
+
33
// ClientConfig is a configuration of a client.
34
type ClientConfig struct {
35
authToken string
@@ -36,7 +40,7 @@ type ClientConfig struct {
36
40
APIVersion string // required when APIType is APITypeAzure or APITypeAzureAD
37
41
AssistantVersion string
38
42
AzureModelMapperFunc func(model string) string // replace model to azure deployment name func
39
- HTTPClient *http.Client
43
+ HTTPClient HTTPDoer
44
45
EmptyMessagesLimit uint
46
}
0 commit comments