Skip to content
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/docs extras #803

Merged
merged 2 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `AzureOpenAiVisionImageQueryDriver` to support queries on images using Azure's OpenAI Vision models.

### Changed
- **BREAKING**: Updated OpenAI-based image query drivers to remove Vision from the name.
- Default the value of `azure_deployment` on all Azure Drivers to the model the Driver is using.
- Field `azure_ad_token` on all Azure Drivers is no longer serializable.
- Default standard OpenAI and Azure OpenAI image query model to `gpt-4o`.
- **BREAKING**: Updated OpenAI-based image query drivers to remove Vision from the name.
- Error message to be more helpful when importing optional dependencies.

## [0.25.1] - 2024-05-15

Expand Down
3 changes: 3 additions & 0 deletions docs/griptape-framework/drivers/web-scraper-drivers.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ agent.run("List all email addresses on griptape.ai in a flat numbered markdown l

## Trafilatura Web Scraper Driver

!!! info
This driver requires the `drivers-web-scraper-trafilatura` [extra](../index.md#extras).

The [TrafilaturaWebScraperDriver](../../reference/griptape/drivers/web_scraper/trafilatura_web_scraper_driver.md) scrapes text from a webpage using the [Trafilatura](https://trafilatura.readthedocs.io) library.

Example of using `TrafilaturaWebScraperDriver` directly:
Expand Down
5 changes: 4 additions & 1 deletion griptape/utils/import_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ def import_optional_dependency(name: str) -> Optional[ModuleType]:
package_name = INSTALL_MAPPING.get(name)
install_name = package_name if package_name is not None else name

msg = f"Missing optional dependency: '{install_name}'. " f"Use poetry or pip to install '{install_name}'."
msg = (
f"Missing optional dependency: '{install_name}'. "
f"Please install the appropriate extra: https://docs.griptape.ai/stable/griptape-framework/#extras."
)
try:
module = import_module(name)
except ImportError:
Expand Down
Loading