MCPcopy Create free account
hub / github.com/appleboy/CodeGPT / WithProvider

Function WithProvider

provider/openai/options.go:120–124  ·  view source on GitHub ↗

WithProvider returns a new Option that sets the provider for the client configuration.

(val core.Platform)

Source from the content-addressed store, hash-verified

118
119// WithProvider returns a new Option that sets the provider for the client configuration.
120func WithProvider(val core.Platform) Option {
121 return optionFunc(func(c *config) {
122 c.provider = val
123 })
124}
125
126// WithSkipVerify returns a new Option that sets the skipVerify for the client configuration.
127func WithSkipVerify(val bool) Option {

Callers 2

NewOpenAIFunction · 0.92
Test_config_validFunction · 0.85

Calls 1

optionFuncFuncType · 0.70

Tested by 1

Test_config_validFunction · 0.68