You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running custom_graph_bedrock.py , the following error occurs:
Traceback (most recent call last):
File ".../Scrapegraph-ai/examples/bedrock/custom_graph_bedrock.py", line 10, in <module>
from scrapegraphai.models import Bedrock
ImportError: cannot import name 'Bedrock' from 'scrapegraphai.models' (.../Scrapegraph-ai/scrapegraphai/models/__init__.py)
To Reproduce
Steps to reproduce the behavior:
Run custom_graph_bedrock.py
See error
Expected behavior
The scripts runs
Screenshots
N/A
Desktop (please complete the following information):
Hey @leroylim20! I'm here to help you with any bugs, questions, or contributions. Let's work together to resolve the issue you're facing.
The Bedrock class is no longer available in the scrapegraphai.models module. The current classes in the module are DeepSeek, OneApi, OpenAIImageToText, and OpenAITextToSpeech[1].
For tasks previously handled by Bedrock, you can refer to the example provided in the documentation that demonstrates how to use the current classes and nodes to achieve similar functionality. This involves setting up a custom graph using nodes like FetchNode, ParseNode, RAGNode, GenerateAnswerNode, and RobotsNode[2].
If you need to restore the Bedrock functionality, you might consider checking out an earlier commit where Bedrock.py was present or adapting the new classes and nodes to fit your requirements.
Describe the bug
When running custom_graph_bedrock.py , the following error occurs:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The scripts runs
Screenshots
N/A
Desktop (please complete the following information):
Additional context
Found a old Bedrock.py under Models in https://github.com/ScrapeGraphAI/Scrapegraph-ai/blob/16de49fa086547351704c16989fa1bd2d2efb363/scrapegraphai/models/bedrock.py but this seems to be missing in the main branch
The text was updated successfully, but these errors were encountered: