Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| params.append('categories', selectedIndustries.join(',')); | ||
| } | ||
|
|
||
| const response = await axios.post(`https://flow.sokt.io/func/scrifJcjUubA?${params.toString()}`, {}); | ||
| const responseData = await response?.data; | ||
| const payload = {}; | ||
| if (selectedDepartments.length > 0) { | ||
| payload.departments = selectedDepartments.join(','); | ||
| } | ||
| if (selectedIndustries.length > 0) { | ||
| payload.categories = selectedIndustries.join(','); | ||
| } | ||
|
|
||
| const responseData = await scriptRunner('AI_SEARCH', payload, 'POST'); |
There was a problem hiding this comment.
Include selected apps when invoking AI search
getAiResponse still collects the selected apps into params, but the subsequent scriptRunner('AI_SEARCH', payload) call never uses params and the payload object omits an apps field. As a result the request no longer contains the user's chosen apps, so the AI search backend cannot tailor results to the selection and always returns generic data. Forward the selected app names in the payload (or reuse params) to preserve the previous behaviour.
Useful? React with 👍 / 👎.
No description provided.