Skip to content

Commit aa8dd7f

Browse files
authored
Fix: Inconsistent parameter (#60)
Fix: Inconsistent parameter passing for Jina API key in WebSailor
2 parents d96ebe0 + 5e72a68 commit aa8dd7f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

WebSailor/src/scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export JINA_KEY="your_jina_key"
1+
export JINA_API_KEY="your_jina_api_key"
22
export SEARCH_API_URL="your_search_api_url"
33
export GOOGLE_SEARCH_KEY="your_google_search_key"
44

WebSailor/src/tool_visit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# Visit Tool (Using Jina Reader)
1515
JINA_READER_URL_PREFIX = "https://r.jina.ai/"
1616

17-
JINA_API_KEYS = os.getenv("JINA_API_KEYS")
17+
JINA_API_KEY = os.getenv("JINA_API_KEY")
1818

1919

2020
@register_tool('visit', allow_overwrite=True)
@@ -111,7 +111,7 @@ def jina_readpage(self, url: str) -> str:
111111
str: The webpage content or error message
112112
"""
113113
headers = {
114-
"Authorization": f"Bearer {random.choice(JINA_API_KEYS)}",
114+
"Authorization": f"Bearer {JINA_API_KEY}",
115115
}
116116
max_retries = 3
117117
timeout = 10

0 commit comments

Comments
 (0)