MCPcopy Index your code
hub / github.com/coder/coder / providerHint

Method providerHint

coderd/x/chatd/model_routing.go:55–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55func (r resolvedModelRoute) providerHint() (string, error) {
56 switch r.kind {
57 case modelRouteKindDirect:
58 return r.direct.ProviderHint, nil
59 case modelRouteKindAIGateway:
60 return r.aiGateway.ModelProviderHint, nil
61 default:
62 return "", xerrors.New("model route is not configured")
63 }
64}
65
66func (r resolvedModelRoute) withProviderHint(providerHint string) resolvedModelRoute {
67 switch r.kind {

Callers 2

newDebugAwareModelMethod · 0.80
resolveChatModelMethod · 0.80

Calls 1

NewMethod · 0.65

Tested by

no test coverage detected