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

Function WithModel

provider/openai/options.go:56–60  ·  view source on GitHub ↗

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

(val string)

Source from the content-addressed store, hash-verified

54
55// WithModel is a function that returns an Option, which sets the model field of the config struct.
56func WithModel(val string) Option {
57 return optionFunc(func(c *config) {
58 c.model = val
59 })
60}
61
62// WithProxyURL is a function that returns an Option, which sets the proxyURL field of the config struct.
63func WithProxyURL(val string) Option {

Callers 3

NewOpenAIFunction · 0.92
Test_config_validFunction · 0.70
TestCompletionStreamFunction · 0.70

Calls 1

optionFuncFuncType · 0.70

Tested by 2

Test_config_validFunction · 0.56
TestCompletionStreamFunction · 0.56