MCPcopy Create free account
hub / github.com/simstudioai/sim / useDeployedChatConfig

Function useDeployedChatConfig

apps/sim/hooks/queries/chats.ts:89–97  ·  view source on GitHub ↗
(identifier: string)

Source from the content-addressed store, hash-verified

87 * password/email/SSO gating so the consumer can render the appropriate form.
88 */
89export function useDeployedChatConfig(identifier: string) {
90 return useQuery({
91 queryKey: chatKeys.config(identifier),
92 queryFn: ({ signal }) => fetchDeployedChatConfig(identifier, signal),
93 enabled: Boolean(identifier),
94 staleTime: 60 * 1000,
95 retry: false,
96 })
97}
98
99async function postChatAuth(
100 identifier: string,

Callers 1

ChatClientFunction · 0.90

Calls 1

fetchDeployedChatConfigFunction · 0.85

Tested by

no test coverage detected