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

Method withProviderHint

coderd/x/chatd/model_routing.go:66–74  ·  view source on GitHub ↗
(providerHint string)

Source from the content-addressed store, hash-verified

64}
65
66func (r resolvedModelRoute) withProviderHint(providerHint string) resolvedModelRoute {
67 switch r.kind {
68 case modelRouteKindDirect:
69 r.direct.ProviderHint = providerHint
70 case modelRouteKindAIGateway:
71 r.aiGateway.ModelProviderHint = providerHint
72 }
73 return r
74}
75
76func (r resolvedModelRoute) directProviderKeys() chatprovider.ProviderAPIKeys {
77 if r.kind != modelRouteKindDirect {

Callers 1

newDebugAwareModelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected