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

Function createChatModelConfig

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

Source from the content-addressed store, hash-verified

1828});
1829
1830export const createChatModelConfig = (queryClient: QueryClient) => ({
1831 mutationFn: (req: TypesGen.CreateChatModelConfigRequest) =>
1832 API.experimental.createChatModelConfig(req),
1833 onSuccess: async () => {
1834 await invalidateChatConfigurationQueries(queryClient);
1835 },
1836});
1837
1838type UpdateChatModelConfigMutationArgs = {
1839 modelConfigId: string;

Callers 2

AgentSettingsModelsPageFunction · 0.90

Calls 2

createChatModelConfigMethod · 0.80

Tested by

no test coverage detected