Skip to content

Commit

Permalink
Support http client middlewareing
Browse files Browse the repository at this point in the history
  • Loading branch information
michurin committed Aug 21, 2024
1 parent d86425a commit 629b308
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ type ClientConfig struct {
APIVersion string // required when APIType is APITypeAzure or APITypeAzureAD
AssistantVersion string
AzureModelMapperFunc func(model string) string // replace model to azure deployment name func
HTTPClient *http.Client
HTTPClient interface {
Do(req *http.Request) (*http.Response, error)
}

EmptyMessagesLimit uint
}
Expand Down

0 comments on commit 629b308

Please sign in to comment.