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

Added New Retriever: BingRM #1994

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Incorporated linted changes
  • Loading branch information
no-dice-io committed Dec 27, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 4e0ca9e130a2733508f1b60414457a904c410604
4 changes: 2 additions & 2 deletions dspy/retrieve/bing_rm/base.py
Original file line number Diff line number Diff line change
@@ -233,8 +233,8 @@ async def async_search(self, api: str, query: str) -> BingResponse:
return BingResponse.from_search_json(
json
)
except aiohttp.ClientResponseError as err:
err = f"Error "
except aiohttp.ClientResponseError:
err = "Error "
return BingResponse.from_error(
err.status, str(err)
)
2 changes: 1 addition & 1 deletion dspy/retrieve/bing_rm/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pydantic import BaseModel, Field
from typing import List, Optional
from typing import Optional
import logging
import os