MCPcopy
hub / github.com/continuedev/continue / deleteModel

Function deleteModel

core/config/util.ts:94–105  ·  view source on GitHub ↗
(title: string)

Source from the content-addressed store, hash-verified

92}
93
94export function deleteModel(title: string) {
95 editConfigFile(
96 (config) => {
97 config.models = config.models.filter((m: any) => m.title !== title);
98 return config;
99 },
100 (config) => {
101 config.models = config.models?.filter((m: any) => m.name !== title);
102 return config;
103 },
104 );
105}
106
107export function getModelByRole<T extends keyof ExperimentalModelRoles>(
108 config: ContinueConfig,

Callers 1

Calls 1

editConfigFileFunction · 0.90

Tested by

no test coverage detected