MCPcopy
hub / github.com/coder/mux / saveRoutePriority

Function saveRoutePriority

src/node/services/providerModelFactory.test.ts:54–64  ·  view source on GitHub ↗
(
  config: Config,
  routePriority: string[],
  overrides: Record<string, unknown> = {}
)

Source from the content-addressed store, hash-verified

52}
53
54async function saveRoutePriority(
55 config: Config,
56 routePriority: string[],
57 overrides: Record<string, unknown> = {}
58): Promise<void> {
59 await config.saveConfig({
60 ...config.loadConfigOrDefault(),
61 ...overrides,
62 routePriority,
63 });
64}
65
66type ResolveAndCreateModelResult = Awaited<
67 ReturnType<ProviderModelFactory["resolveAndCreateModel"]>

Callers 1

Calls 2

saveConfigMethod · 0.80
loadConfigOrDefaultMethod · 0.80

Tested by

no test coverage detected