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

Function WithSocksURL

provider/openai/options.go:70–74  ·  view source on GitHub ↗

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

(val string)

Source from the content-addressed store, hash-verified

68
69// WithSocksURL is a function that returns an Option, which sets the socksURL field of the config struct.
70func WithSocksURL(val string) Option {
71 return optionFunc(func(c *config) {
72 c.socksURL = val
73 })
74}
75
76// WithBaseURL returns a new Option that sets the base URL for the client configuration.
77// It takes a string value representing the base URL to use for requests.

Callers 1

NewOpenAIFunction · 0.92

Calls 1

optionFuncFuncType · 0.70

Tested by

no test coverage detected