MCPcopy Create free account
hub / github.com/bricks-cloud/BricksLLM / GetSettingValue

Method GetSettingValue

internal/route/route.go:628–641  ·  view source on GitHub ↗
(provider string, param string)

Source from the content-addressed store, hash-verified

626}
627
628func (r *Request) GetSettingValue(provider string, param string) (string, error) {
629 for _, setting := range r.Settings {
630 if setting.Provider == provider {
631 val, ok := setting.Setting[param]
632 if ok {
633 return val, nil
634 }
635
636 return "", errors.New(fmt.Sprintf("%s setting param: %s not found", provider, param))
637 }
638 }
639
640 return "", errors.New(fmt.Sprintf("%s setting is not found", provider))
641}
642
643type Response struct {
644 Provider string

Callers 2

createHttpRequestMethod · 0.95
RunStepsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected