Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing request.py #102

Merged
merged 2 commits into from
Jan 25, 2024
Merged

Changing request.py #102

merged 2 commits into from
Jan 25, 2024

Conversation

pixkk
Copy link
Contributor

@pixkk pixkk commented Jan 25, 2024

Before the changes were made, the chat bot wrote responses in the “balanced” style. (#91 and #101)

Changing optionsSets to conversation_style.value fix this problem (but this solution maybe temporary, because in my case in original bing requests optionsSets identical for all types of style (balanced, creative, precise).

Also changed allowedMessageTypes - removed InternalSearchQuery, InternalSearchResult, InternalLoaderMessage, RenderCardRequest (because they must be added if search_result = True

if search_result:
            have_search_result = [
                "InternalSearchQuery",
                "InternalSearchResult",
                "InternalLoaderMessage",
                "RenderCardRequest",
            ]
            self.struct["arguments"][0]["allowedMessageTypes"] += have_search_result

sliceIds also chaned - if it cause problem for some users, You will need to add a parser for these values.

…optionsSets changed to conversation_style.value (maybe temporary solution), changed sliceIds, added "scenario":"SERP".
@JE-Chen JE-Chen merged commit c627185 into Integration-Automation:main Jan 25, 2024
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants