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

Function newDirectModelRoute

coderd/x/chatd/model_routing.go:45–53  ·  view source on GitHub ↗
(providerHint string, keys chatprovider.ProviderAPIKeys)

Source from the content-addressed store, hash-verified

43}
44
45func newDirectModelRoute(providerHint string, keys chatprovider.ProviderAPIKeys) resolvedModelRoute {
46 return resolvedModelRoute{
47 kind: modelRouteKindDirect,
48 direct: directModelRoute{
49 ProviderHint: providerHint,
50 Keys: keys,
51 },
52 }
53}
54
55func (r resolvedModelRoute) providerHint() (string, error) {
56 switch r.kind {

Calls

no outgoing calls