Skip to content

Commit

Permalink
Fix/docs extras (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter authored May 23, 2024
1 parent 04af7d1 commit 2e030bb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
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

0 comments on commit 2e030bb

Please sign in to comment.