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

Function updateChatModelConfig

site/src/api/queries/chats.ts:1843–1849  ·  view source on GitHub ↗
(queryClient: QueryClient)

Source from the content-addressed store, hash-verified

1841};
1842
1843export const updateChatModelConfig = (queryClient: QueryClient) => ({
1844 mutationFn: ({ modelConfigId, req }: UpdateChatModelConfigMutationArgs) =>
1845 API.experimental.updateChatModelConfig(modelConfigId, req),
1846 onSuccess: async () => {
1847 await invalidateChatConfigurationQueries(queryClient);
1848 },
1849});
1850
1851export const deleteChatModelConfig = (queryClient: QueryClient) => ({
1852 mutationFn: (modelConfigId: string) =>

Callers 2

AgentSettingsModelsPageFunction · 0.90

Calls 2

updateChatModelConfigMethod · 0.80

Tested by

no test coverage detected