-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix: Bedrock support #227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Bedrock support #227
Conversation
docs: update instructions to use with LocalAI
Revert "docs: update instructions to use with LocalAI"
Docs main readme
## [0.10.1](ScrapeGraphAI/Scrapegraph-ai@v0.10.0...v0.10.1) (2024-05-11) ### Bug Fixes * crash asyncio due dependency version ([2563773](ScrapeGraphAI@2563773)) ### Docs * fixed speechgraphexample ([4bf90f3](ScrapeGraphAI@4bf90f3)) * fixed unused param and install ([cc28d5a](ScrapeGraphAI@cc28d5a)) * **readme:** improve main readme ([ae5655f](ScrapeGraphAI@ae5655f)) * update instructions to use with LocalAI ([198420c](ScrapeGraphAI@198420c)) * Update README.md ([772e064](ScrapeGraphAI@772e064)) * updated sponsor logo ([f8d8d71](ScrapeGraphAI@f8d8d71))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a member of the team, however:
- direct contributions to the
main
branch are not accepted, as stated in the contributing policy. You have to work on thepre/beta
branch (the embedding problem is already fixed in that branch, by the way)
You might still improve two things on that branch too, though:
- look into the duplicate
Claude
andAnthropic
classes in themodels
folder (looks like they're doing the same thing) - swap the community
BedrockEmbeddings
with the officialBedrockEmbeddings
@@ -146,12 +147,12 @@ def _create_llm(self, llm_config: dict, chat=False) -> object: | |||
except KeyError as exc: | |||
raise KeyError("Model not supported") from exc | |||
return Gemini(llm_params) | |||
elif "claude" in llm_params["model"]: | |||
elif llm_params["model"].startswith("claude"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, could be used in other points of this file
Superseded by #228 |
Fixes #226
Example: https://gist.github.com/JGalego/67a3db0005f5ed052224e549e8ee627c