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
π οΈ 108/156 tests passed
π Test Updates
I've added 2 tests. They all pass βοΈ
New Tests:
tests/test_chromium.py
tests/test_scrape_do.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 is not being provided in the test case.
The issue is not with the test itself, but with how the
_create_llm
method is handling the Bedrock model configuration. It's assuming that all Bedrock models will have a 'temperature' parameter, which may not always be the case.To fix this, the code should be modified to handle cases where the 'temperature' parameter is not provided for Bedrock models. This could be done by using the
get
method with a default value, or by checking if the key exists before trying to pop it.For example, the code could be changed to:
This change would allow the code to work correctly even when the 'temperature' parameter is not provided in the test configuration.
Test Error Log
βοΈ Coverage Improvements
Coverage improvements by file:
tests/test_chromium.py
tests/test_scrape_do.py
π¨ Final Touches
Settings | Logs | CodeBeaver