@brainfish-ai/components 0.14.1 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/chunks/{ChatSearch.DdKSJqhX.js → ChatSearch.BVivOuWt.js} +4 -2
- package/dist/esm/chunks/ChatSearch.BVivOuWt.js.map +1 -0
- package/dist/esm/components/chat-search.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/stats.html +1 -1
- package/package.json +1 -1
- package/dist/esm/chunks/ChatSearch.DdKSJqhX.js.map +0 -1
|
@@ -4254,6 +4254,7 @@ async function searchApi({
|
|
|
4254
4254
|
secretAttributes,
|
|
4255
4255
|
allowedRegions
|
|
4256
4256
|
}) {
|
|
4257
|
+
const isAgentAssist = !!headers?.["x-brainfish-agent-assist"] && headers?.["x-brainfish-agent-assist"] !== "false";
|
|
4257
4258
|
const payload = await makeRequest(endpoint, {
|
|
4258
4259
|
method: "POST",
|
|
4259
4260
|
headers,
|
|
@@ -4265,7 +4266,8 @@ async function searchApi({
|
|
|
4265
4266
|
...conversationId && { conversationId },
|
|
4266
4267
|
...attributes && { attributes },
|
|
4267
4268
|
...secretAttributes && { secretAttributes },
|
|
4268
|
-
...allowedRegions && { allowedRegions }
|
|
4269
|
+
...allowedRegions && { allowedRegions },
|
|
4270
|
+
...isAgentAssist && { source: "agent_assist" }
|
|
4269
4271
|
}
|
|
4270
4272
|
});
|
|
4271
4273
|
return {
|
|
@@ -6129,4 +6131,4 @@ const ChatSearch = forwardRef(({ featureFlags, ...props }, ref) => /* @__PURE__
|
|
|
6129
6131
|
ChatSearch.displayName = "ChatSearch";
|
|
6130
6132
|
|
|
6131
6133
|
export { ChatSearch as C, ChatSearchProvider as a, useIsChatSearchDirty as b, useChatSearch as u };
|
|
6132
|
-
//# sourceMappingURL=ChatSearch.
|
|
6134
|
+
//# sourceMappingURL=ChatSearch.BVivOuWt.js.map
|