refactor: update API key checks in WebToolsTester
- Replaced the Nous API key check with the Auxiliary Model check in the WebToolsTester class. - Updated the environment configuration to reflect the change in API key validation, ensuring accurate reporting of available keys.
This commit is contained in:
parent
90af34bc83
commit
d8a369e194
1 changed files with 3 additions and 3 deletions
|
|
@ -29,7 +29,7 @@ from tools.web_tools import (
|
||||||
web_extract_tool,
|
web_extract_tool,
|
||||||
web_crawl_tool,
|
web_crawl_tool,
|
||||||
check_firecrawl_api_key,
|
check_firecrawl_api_key,
|
||||||
check_nous_api_key,
|
check_auxiliary_model,
|
||||||
get_debug_session_info
|
get_debug_session_info
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -126,7 +126,7 @@ class WebToolsTester:
|
||||||
self.log_result("Firecrawl API Key", "passed", "Found")
|
self.log_result("Firecrawl API Key", "passed", "Found")
|
||||||
|
|
||||||
# Check Nous API key (optional)
|
# Check Nous API key (optional)
|
||||||
if not check_nous_api_key():
|
if not check_auxiliary_model():
|
||||||
self.log_result("Nous API Key", "skipped", "NOUS_API_KEY not set (LLM tests will be skipped)")
|
self.log_result("Nous API Key", "skipped", "NOUS_API_KEY not set (LLM tests will be skipped)")
|
||||||
self.test_llm = False
|
self.test_llm = False
|
||||||
else:
|
else:
|
||||||
|
|
@ -576,7 +576,7 @@ class WebToolsTester:
|
||||||
"results": self.test_results,
|
"results": self.test_results,
|
||||||
"environment": {
|
"environment": {
|
||||||
"firecrawl_api_key": check_firecrawl_api_key(),
|
"firecrawl_api_key": check_firecrawl_api_key(),
|
||||||
"nous_api_key": check_nous_api_key(),
|
"nous_api_key": check_auxiliary_model(),
|
||||||
"debug_mode": get_debug_session_info()["enabled"]
|
"debug_mode": get_debug_session_info()["enabled"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue