-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Bing Search Pass Thru #8019
base: main
Are you sure you want to change the base?
Bing Search Pass Thru #8019
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requested changes
@@ -325,6 +327,25 @@ async def pass_through_request( # noqa: PLR0915 | |||
request=request, headers=headers, forward_headers=forward_headers | |||
) | |||
|
|||
if merge_query_params: | |||
# Get the query params from the request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you make a helper function for doing this and call the helper
@@ -2175,6 +2175,7 @@ class SpecialHeaders(enum.Enum): | |||
azure_authorization = "API-Key" | |||
anthropic_authorization = "x-api-key" | |||
google_ai_studio_authorization = "x-goog-api-key" | |||
bing_search_authorization = "Ocp-Apim-Subscription-Key" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be apim_authorization header correct
I believe all apim requests can use this header ?
Title
Enables Bing Search as a pass-thru endpoint
Type
🆕 New Feature
Changes
Ocp-Apim-Subscription-Key
a valid for looking up a key (https://learn.microsoft.com/en-us/bing/search-apis/bing-web-search/reference/headers)merge_query_params
to pass thru endpoints so we can pass the search string thru.[REQUIRED] Testing - Attach a screenshot of any new tests passing locally
If UI changes, send a screenshot/GIF of working UI fixes
unclear why there is so much output.