Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CodeBeaver Report
I started working from Pre/beta
π 2 test files added.
π Found 1 bug
π οΈ 114/162 tests passed
π Test Updates
I've added 2 tests. They all pass βοΈ
New Tests:
tests/test_chromium.py
tests/test_csv_scraper_multi_graph.py
No existing tests required updates.
π Bug Detection
Potential issues:
scrapegraphai/graphs/abstract_graph.py
The error is occurring in the
_create_llm
method of theAbstractGraph
class. Specifically, it's failing when trying to create a Bedrock model instance. The error message indicates that it's trying to pop a 'temperature' key from thellm_params
dictionary, but this key doesn't exist.This suggests that the test is expecting the Bedrock model configuration to include a 'temperature' parameter, which it doesn't. The error is happening because the code assumes that all Bedrock models will have a temperature parameter, but the test data doesn't include it.
The issue is not with the test itself, but with how the
_create_llm
method handles Bedrock models. It's making an assumption about the required parameters that isn't always true.To fix this, the code should be modified to handle cases where the 'temperature' parameter is not provided for Bedrock models. For example, it could use a default value or skip setting the temperature if it's not provided.
Test Error Log
βοΈ Coverage Improvements
Coverage improvements by file:
tests/test_chromium.py
tests/test_csv_scraper_multi_graph.py
π¨ Final Touches
Settings | Logs | CodeBeaver