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

Function WithProxyURL

provider/openai/options.go:63–67  ·  view source on GitHub ↗

WithProxyURL is a function that returns an Option, which sets the proxyURL field of the config struct.

(val string)

Source from the content-addressed store, hash-verified

61
62// WithProxyURL is a function that returns an Option, which sets the proxyURL field of the config struct.
63func WithProxyURL(val string) Option {
64 return optionFunc(func(c *config) {
65 c.proxyURL = val
66 })
67}
68
69// WithSocksURL is a function that returns an Option, which sets the socksURL field of the config struct.
70func WithSocksURL(val string) Option {

Callers 1

NewOpenAIFunction · 0.92

Calls 1

optionFuncFuncType · 0.70

Tested by

no test coverage detected